Skip to content

M_CodeJam_EnumCode_Defined__1

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

EnumCode.Defined(TEnum) Method

Asserts that specified argument enum value is defined.

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

Syntax

C#

public static void Defined<TEnum>(
	TEnum value,
	string argName
)
where TEnum : struct, new()

VB

Public Shared Sub Defined(Of TEnum As {Structure, New}) ( 
	value As TEnum,
	argName As String
)

F#

static member Defined : 
        value : 'TEnum * 
        argName : string -> unit  when 'TEnum : struct, new()

Parameters

 

value
Type: TEnum
The argument.
argName
Type: System.String
Name of the argument.

Type Parameters

 

TEnum
The type of the enum value.

See Also

Reference

EnumCode Class
CodeJam Namespace

Clone this wiki locally