TG.INI
EnumExtensionsHasFlag Method |
A FX 3.5 way to mimic the FX4 "HasFlag" method.
Namespace: TG.INI
Assembly: TG.INI (in TG.INI.dll) Version: 1.2.2.0 (1.2.2.0)
Syntax
public static bool HasFlag( Enum variable, Enum value )
Public Shared Function HasFlag ( variable As Enum, value As Enum ) As Boolean
public: static bool HasFlag( Enum^ variable, Enum^ value )
static member HasFlag : variable : Enum * value : Enum -> bool
Parameters
- variable
- Type: SystemEnum
The tested enum. - value
- Type: SystemEnum
The value to test.
Return Value
Type: BooleanTrue if the flag is set. Otherwise false.
See Also