Skip to content

M_CodeJam_CodeExceptions_UnexpectedValue__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 7 revisions

CodeExceptions.UnexpectedValue(T) Method (T)

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

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

Syntax

C#

public static InvalidOperationException UnexpectedValue<T>(
	T value
)

VB

Public Shared Function UnexpectedValue(Of T) ( 
	value As T
) As InvalidOperationException

F#

static member UnexpectedValue : 
        value : 'T -> InvalidOperationException 

Parameters

 

value
Type: T
The value.

Type Parameters

 

T
The type of the value. Auto-inferred.

Return Value

Type: InvalidOperationException
Initialized instance of InvalidOperationException.

See Also

Reference

CodeExceptions Class
UnexpectedValue Overload
CodeJam Namespace

Clone this wiki locally