System.Globalization.CharUnicodeInfo.GetUnicodeCategory C# (CSharp) Method

GetUnicodeCategory() public static method

public static GetUnicodeCategory ( String s, int index ) : UnicodeCategory
s String
index int
return UnicodeCategory
        public static UnicodeCategory GetUnicodeCategory(String s, int index)
        {
            if (s==null)
                throw new ArgumentNullException("s");
            if (((uint)index)>=((uint)s.Length)) {
                throw new ArgumentOutOfRangeException("index");
            }
            return InternalGetUnicodeCategory(s, index);
        }

Same methods

CharUnicodeInfo::GetUnicodeCategory ( char ch ) : UnicodeCategory

Usage Example

        // Token: 0x06002CCD RID: 11469 RVA: 0x000AB254 File Offset: 0x000A9454
        internal static bool IsWhiteSpace(char c)
        {
            UnicodeCategory unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c);

            return(unicodeCategory - UnicodeCategory.SpaceSeparator <= 2);
        }
All Usage Examples Of System.Globalization.CharUnicodeInfo::GetUnicodeCategory