TcK*_*cKs 7

public static bool IsLowerCase( this string text ) {
    if ( string.IsNullOrEmpty( text ) ) { return true; }
    foreach ( char c in text )
        if ( char.IsLetter( c ) && !char.IsLower( c ) )
            return false;

    return true;
}


"someString".IsLowerCase();
Run Code Online (Sandbox Code Playgroud)


Gan*_*ant 6

你的意思是Char.IsLower(ch);