EnumExtensionsIsOneOfT Method |
Namespace: StreamCoders.HelpersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static bool IsOneOf<T>(
this Enum e,
params T[] items
)
where T : struct, new(), IConvertible
<ExtensionAttribute>
Public Shared Function IsOneOf(Of T As {Structure, New, IConvertible}) (
e As Enum,
ParamArray items As T()
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
where T : value class, gcnew(), IConvertible
static bool IsOneOf(
Enum^ e,
... array<T>^ items
)
[<ExtensionAttribute>]
static member IsOneOf :
e : Enum *
items : 'T[] -> bool when 'T : struct, new() and IConvertible
Parameters
- e
- Type: SystemEnum
- items
- Type: T
Type Parameters
- T
Return Value
Type:
BooleanUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Enum. 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).
See Also