[This is preliminary documentation and is subject to change.]
Returns true when token's type is any of the specified
Namespace: NFX.CodeAnalysisAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static bool TypeIsAnyOf<TToken, TTokenType>(
this TToken token,
params TTokenType[] types
)
where TToken : Token
where TTokenType : struct, new(), IConvertible
public static bool TypeIsAnyOf<TToken, TTokenType>(
this TToken token,
params TTokenType[] types
)
where TToken : Token
where TTokenType : struct, new(), IConvertible
<ExtensionAttribute>
Public Shared Function TypeIsAnyOf(Of TToken As Token, TTokenType As {Structure, New, IConvertible}) (
token As TToken,
ParamArray types As TTokenType()
) As Boolean
<ExtensionAttribute>
Public Shared Function TypeIsAnyOf(Of TToken As Token, TTokenType As {Structure, New, IConvertible}) (
token As TToken,
ParamArray types As TTokenType()
) As Boolean
public:
[ExtensionAttribute]
generic<typename TToken, typename TTokenType>
where TToken : Token
where TTokenType : value class, gcnew(), IConvertible
static bool TypeIsAnyOf(
TToken token,
... array<TTokenType>^ types
)
public:
[ExtensionAttribute]
generic<typename TToken, typename TTokenType>
where TToken : Token
where TTokenType : value class, gcnew(), IConvertible
static bool TypeIsAnyOf(
TToken token,
... array<TTokenType>^ types
)
static member TypeIsAnyOf :
token : 'TToken *
types : 'TTokenType[] -> bool when 'TToken : Token when 'TTokenType : struct, new() and IConvertible
static member TypeIsAnyOf :
token : 'TToken *
types : 'TTokenType[] -> bool when 'TToken : Token when 'TTokenType : struct, new() and IConvertible
Parameters
- token
- Type: TToken
- types
- Type: TTokenType
- TToken
- TTokenType
Return Value
Type:
BooleanUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).