Skip to content

M_CodeJam_CodeExceptions_UnexpectedArgumentValue__1_1

andrewvk edited this page Apr 5, 2016 · 6 revisions

CodeExceptions.UnexpectedArgumentValue(T) Method (String, T, String, Object[])

[This is preliminary documentation and is subject to change.]

Creates . Used to be thrown from default: switch clause

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

Syntax

C#

public static ArgumentOutOfRangeException UnexpectedArgumentValue<T>(
	string argumentName,
	T value,
	string messageFormat,
	params Object[] args
)

VB

Public Shared Function UnexpectedArgumentValue(Of T) ( 
	argumentName As String,
	value As T,
	messageFormat As String,
	ParamArray args As Object()
) As ArgumentOutOfRangeException

F#

static member UnexpectedArgumentValue : 
        argumentName : string * 
        value : 'T * 
        messageFormat : string * 
        args : Object[] -> ArgumentOutOfRangeException 

Parameters

 

argumentName
Type: System.String
[Missing documentation for "M:CodeJam.CodeExceptions.UnexpectedArgumentValue1(System.String,0,System.String,System.Object[])"]
value
Type: T
[Missing documentation for "M:CodeJam.CodeExceptions.UnexpectedArgumentValue1(System.String,0,System.String,System.Object[])"]
messageFormat
Type: System.String
[Missing documentation for "M:CodeJam.CodeExceptions.UnexpectedArgumentValue1(System.String,0,System.String,System.Object[])"]
args
Type: System.Object[]
[Missing documentation for "M:CodeJam.CodeExceptions.UnexpectedArgumentValue1(System.String,0,System.String,System.Object[])"]

Type Parameters

 

T

Return Value

Type: ArgumentOutOfRangeException
[Missing documentation for "M:CodeJam.CodeExceptions.UnexpectedArgumentValue1(System.String,0,System.String,System.Object[])"]

See Also

Reference

CodeExceptions Class
UnexpectedArgumentValue Overload
CodeJam Namespace
System.ArgumentOutOfRangeException

Clone this wiki locally