SystemExt/TokenList.cs
/// <summary>
/// Add the specified token to the list.
/// </summary>
/// <param name="token">
/// The token to add.
/// </param>
Add the specified token to the list.
Add the specified token to the list .
public void AddToken(string token)
        {
            if (token == null)
                throw new ArgumentNullException("token");
            if (token == "*")
            {
                this.IsPermissive = true;
                this.Tokens.Clear();
                return;
            }
            if (this.IsPermissive)
                this.Tokens.Remove(token);
            else
                this.Tokens.Add(token);
        }
public void AddToken ( string token ) { if ( token == null ) throw new ArgumentNullException ( " " ) ; if ( token == " " ) { this . IsPermissive = true ; this . Tokens . Clear ( ) ; return ; } if ( this . IsPermissive ) this . Tokens . Remove ( token ) ; else this . Tokens . Add ( token ) ; }
Add the specified token to the list.
Add the specified token to the list .
// Check whether this token is a wildcard entry. // If we are in permissive mode then remove the token from the // token list. Otherwise, add it to the token list.
token
string
The token to add.
The token to add .