SystemExt/TokenList.cs
/// <summary>
/// Determines whether a token exists in the token list.
/// </summary>
/// <param name="token">
/// The token to search for.
/// </param>
/// <returns>
/// True if the token exists in the list; otherwise, false.
/// </returns>
Determines whether a token exists in the token list.
Determines whether a token exists in the token list .
public bool HasToken(string token)
        {
            if (this.IsPermissive && this.Tokens.Contains(token))
                return false;
            if (!this.IsPermissive && !this.Tokens.Contains(token))
                return false;
            return true;
        }
public bool HasToken ( string token ) { if ( this . IsPermissive && this . Tokens . Contains ( token ) ) return false ; if ( ! this . IsPermissive && ! this . Tokens . Contains ( token ) ) return false ; return true ; }
Determines whether a token exists in the token list.
Determines whether a token exists in the token list .
// If we are in permissive mode and the token is in the list // then we don't have it. // If we are not in permissive mode and the token is not in // the list then we don't have it. // We have the token!
True if the token exists in the list; otherwise, false.
True if the token exists in the list ; otherwise false .
token
string
The token to search for.
The token to search for .