Skip to content

M_CodeJam_EnumHelper_IsDefined__1

andrewvk edited this page Nov 5, 2016 · 6 revisions

EnumHelper.IsDefined(TEnum) Method

Determines whether the specified value is defined.

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

Syntax

C#

public static bool IsDefined<TEnum>(
	TEnum value
)
where TEnum : struct, new(), IComparable, IFormattable, IConvertible

VB

Public Shared Function IsDefined(Of TEnum As {Structure, New, IComparable, IFormattable, IConvertible}) ( 
	value As TEnum
) As Boolean

F#

static member IsDefined : 
        value : 'TEnum -> bool  when 'TEnum : struct, new() and IComparable and IFormattable and IConvertible

Parameters

 

value
Type: TEnum
The value to check.

Type Parameters

 

TEnum
The type of the enum.

Return Value

Type: Boolean
True, if enum defines the value.

See Also

Reference

EnumHelper Class
CodeJam Namespace

Clone this wiki locally