Source/NFX/CodeAnalysis/PatternSearch.cs
/// <summary>
/// Returns true when token's text is any of specified
/// </summary>
Returns true when token's text is any of specified
Returns true when token ' s text is any of specified
public static bool TextIsAnyOf<TToken>(this TToken token,
                                              StringComparison comparison,
                                              params string[] texts) where TToken : Token
       {
         foreach(var t in texts)
          if (string.Equals(token.Text, t, comparison)) return true;
         return false;
       }
public static bool TextIsAnyOf < TToken > ( this TToken token , StringComparison comparison , params string [ ] texts ) where TToken : Token { foreach ( var t in texts ) if ( string . Equals ( token . Text , t , comparison ) ) return true ; return false ; }
Returns true when token's text is any of specified
Returns true when token ' s text is any of specified
TToken
this
comparison
StringComparison