Skip to content

M_CodeJam_CodeExceptions_UnexpectedArgumentValue__1

Andrew Koryavchenko edited this page Jul 4, 2017 · 6 revisions

CodeExceptions.UnexpectedArgumentValue(T) Method (String, T)

Creates . Used to be thrown from the default: switch clause

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#

public static ArgumentOutOfRangeException UnexpectedArgumentValue<T>(
	string argumentName,
	T value
)

VB

Public Shared Function UnexpectedArgumentValue(Of T) ( 
	argumentName As String,
	value As T
) As ArgumentOutOfRangeException

F#

static member UnexpectedArgumentValue : 
        argumentName : string * 
        value : 'T -> ArgumentOutOfRangeException 

Parameters

 

argumentName
Type: System.String
Name of the argument.
value
Type: T
The value.

Type Parameters

 

T
The type of the value. Auto-inferred.

Return Value

Type: ArgumentOutOfRangeException
Initialized instance of ArgumentOutOfRangeException.

See Also

Reference

CodeExceptions Class
UnexpectedArgumentValue Overload
CodeJam Namespace
System.ArgumentOutOfRangeException

Clone this wiki locally