private static IsNetbiosSplChar ( char c ) : bool | ||
c | char | |
Résultat | 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;
}
}
// 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); }