- 
                Notifications
    
You must be signed in to change notification settings  - Fork 35
 
M_CodeJam_EnumCodeExceptions_ArgumentAnyFlagSet__1
        Andrew Koryavchenko edited this page Jun 17, 2018 
        ·
        3 revisions
      
    Creates ArgumentException for any bit from flag is set case.
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static ArgumentException ArgumentAnyFlagSet<TEnum>(
	string argumentName,
	TEnum value,
	TEnum flags
)
where TEnum : struct, new()VB
Public Shared Function ArgumentAnyFlagSet(Of TEnum As {Structure, New}) ( 
	argumentName As String,
	value As TEnum,
	flags As TEnum
) As ArgumentExceptionF#
static member ArgumentAnyFlagSet : 
        argumentName : string * 
        value : 'TEnum * 
        flags : 'TEnum -> ArgumentException  when 'TEnum : struct, new()
- argumentName
 - Type: System.String
Name of the argument. - value
 - Type: TEnum
The value. - flags
 - Type: TEnum
The bitwise combinations of the flags. 
- TEnum
 - The type of the enum value.
 
Type: ArgumentException
Initialized instance of ArgumentException.