System.Security.Util.SiteString.IsNetbiosSplChar C# (CSharp) Method

IsNetbiosSplChar() private static method

private static IsNetbiosSplChar ( char c ) : bool
c char
return bool
        private static bool IsNetbiosSplChar(char c)
        {
            //  ! @ # $ % ^ & ( ) - _ ' { } . ~ are OK
            switch (c) {
                case '-':
                case '_':
                case '@':
                case '!':
                case '#':
                case '$':
                case '%':
                case '^':
                case '&':
                case '(':
                case ')':
                case '\'':
                case '{':
                case '}':
                case '.':
                case '~':
                    return true;
                default:
                    return false;
            }
        }

Usage Example

 // Token: 0x06002B10 RID: 11024 RVA: 0x0009FD88 File Offset: 0x0009DF88
 private static bool AllLegalCharacters(string str)
 {
     foreach (char c in str)
     {
         if (!SiteString.IsLegalDNSChar(c) && !SiteString.IsNetbiosSplChar(c))
         {
             return(false);
         }
     }
     return(true);
 }
All Usage Examples Of System.Security.Util.SiteString::IsNetbiosSplChar