TunnelVisionLabs.Net.UriTemplate/UriTemplatePart.cs
/// <summary>
/// Determines if an ASCII character matches the <c>reserved</c> pattern defined
/// in RFC 6570.
/// </summary>
/// <param name="b">The ASCII character to test.</param>
/// <returns><see langword="true"/> if <paramref name="b"/> is a <c>reserved</c> character; otherwise, <see langword="false"/>.</returns>
Determines if an ASCII character matches the reserved
Determines if an ASCII character matches the reserved
protected static bool IsReserved(byte b)
        {
            switch ((char)b)
            {
            case ':':
            case '/':
            case '?':
            case '#':
            case '[':
            case ']':
            case '@':
                return true;
            case '!':
            case '$':
            case '&':
            case '\'':
            case '(':
            case ')':
            case '*':
            case '+':
            case ',':
            case ';':
            case '=':
                return true;
            default:
                return false;
            }
        }
protected static bool IsReserved ( byte b ) { switch ( ( char ) b ) { case ' ' : case ' ' : case ' ' : case ' ' : case ' ' : case ' ' : case ' ' : return true ; case ' ' : case ' ' : case ' ' : case ' \' ' : case ' ' : case ' ' : case ' ' : case ' ' : case ' ' : case ' ' : case ' ' : return true ; default : return false ; } }
Determines if an ASCII character matches the reserved
Determines if an ASCII character matches the reserved
// gen-delims // sub-delims
if  is a reserved.
if is a reserved .
b
byte
The ASCII character to test.
The ASCII character to test .