Home:ALL Converter>How to determine an alphabetic character that is not uppercase or lowercase

How to determine an alphabetic character that is not uppercase or lowercase

Ask Time:2014-08-12T12:31:39         Author:Reuben

Json Formatter

Microsoft uses this rule as one of its complexity rules:

Any Unicode character that is categorized as an alphabetic character but is not uppercase or lowercase. This includes Unicode characters from Asian languages.

Testing for usual rules, like uppercase can be as simple as password.Any(char.IsUpper).

What test could I use in C# to test for alphabetic Unicode characters that are not uppercase or lowercase?

Author:Reuben,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/25256202/how-to-determine-an-alphabetic-character-that-is-not-uppercase-or-lowercase
metacubed :

How about the literal translation of the rule:\n\npassword.Any(c => Char.IsLetter(c) &&\n !Char.IsUpper(c) &&\n !Char.IsLower(c))\n",
2014-08-12T04:36:11
yy