System.Resources.UriUtility.IsUriUnreservedChar C# (CSharp) Méthode

IsUriUnreservedChar() private static méthode

private static IsUriUnreservedChar ( char ch ) : bool
ch char
Résultat bool
        private static bool IsUriUnreservedChar(char ch)
        {
            if (ch >= 'a' && ch <= 'z' || ch >= 'A' && ch <= 'Z' || ch >= '0' && ch <= '9')
                return true;

            switch (ch)
            {
                case '-':
                case '_':
                case '.':
                case '~':
                    return true;
            }

            return false;
        }
    }