GenericExtensionsIsOneOf Method |
Returns true if enumeration is one of the listed ones.
Namespace:
DHI.Mike1D.Generic
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public static bool IsOneOf(
this Enum enumeration,
params Enum[] enums
)
<ExtensionAttribute>
Public Shared Function IsOneOf (
enumeration As Enum,
ParamArray enums As Enum()
) As Boolean
public:
[ExtensionAttribute]
static bool IsOneOf(
Enum^ enumeration,
... array<Enum^>^ enums
)
Parameters
- enumeration
- Type: SystemEnum
[Missing <param name="enumeration"/> documentation for "M:DHI.Mike1D.Generic.GenericExtensions.IsOneOf(System.Enum,System.Enum[])"]
- enums
- Type: SystemEnum
[Missing <param name="enums"/> documentation for "M:DHI.Mike1D.Generic.GenericExtensions.IsOneOf(System.Enum,System.Enum[])"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:DHI.Mike1D.Generic.GenericExtensions.IsOneOf(System.Enum,System.Enum[])"]
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