http://orchard.codeplex.com/SourceControl/latest#src/Orchard/Utility/Extensions/StringExtensions.cs
这边有些都扩展,里面全都是if('A' <= current && current <= 'Z')这种没意义的判断``
这个方法有什么意义?我实在是不明白?
/// <summary> /// Whether the char is a letter between A and Z or not /// </summary> public static bool IsLetter(this char c) { return ('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z'); }
我2了是'A' <= c && c <= 'Z'我看成了c <= 'A' && c <= 'Z'