Skip to content

M_CodeJam_EnumHelper_IsDefined__1

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

EnumHelper.IsDefined(TEnum) Method (String)

Determines whether the string representation of value is defined.

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

Syntax

C#

public static bool IsDefined<TEnum>(
	string value
)
where TEnum : struct, new()

VB

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

F#

static member IsDefined : 
        value : string -> bool  when 'TEnum : struct, new()

Parameters

 

value
Type: System.String
String representation of 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
IsDefined Overload
CodeJam Namespace

Clone this wiki locally