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