Hel*_*der 0 .net c# validation
我正在为我的程序登录.我试图阻止用户输入一串重复字符,如:111111或aaaaaa.
111111
aaaaaa
我该怎么做?
Dar*_*rov 9
string str = ... bool isValid = str.Distinct().Count() > 1;
归档时间:
14 年,4 月 前
查看次数:
1397 次
最近记录: