EnumerationExtensionsIsT Method |
Determines whether the enumeration value is equal to the specified value.
Namespace: Altaxo.CollectionsAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static bool Is<T>(
this Enum type,
T value
)
where T : struct, new()
Parameters
- type Enum
- The enum value to check.
- value T
- The value to compare against.
Type Parameters
- T
- The enum type.
Return Value
BooleanTrue if the values are equal; otherwise, false.
Usage 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