- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_CodeExceptions_UnexpectedArgumentValue__1
        Andrew Koryavchenko edited this page Jun 17, 2018 
        ·
        6 revisions
      
    Creates ArgumentOutOfRangeException. Used to be thrown from the default: switch clause
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static ArgumentOutOfRangeException UnexpectedArgumentValue<T>(
	string argumentName,
	T value
)VB
Public Shared Function UnexpectedArgumentValue(Of T) ( 
	argumentName As String,
	value As T
) As ArgumentOutOfRangeExceptionF#
static member UnexpectedArgumentValue : 
        argumentName : string * 
        value : 'T -> ArgumentOutOfRangeException 
- argumentName
- Type: System.String
 Name of the argument.
- value
- Type: T
 The value.
- T
- The type of the value. Auto-inferred.
Type: ArgumentOutOfRangeException
Initialized instance of ArgumentOutOfRangeException.
CodeExceptions Class
UnexpectedArgumentValue Overload
CodeJam Namespace