Skip to content

M_CodeJam_EnumHelper_Parse__1

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

EnumHelper.Parse(TEnum) Method

Parse the enum value.

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

Syntax

C#

public static TEnum Parse<TEnum>(
	string name,
	bool ignoreCase = false
)
where TEnum : struct, new()

VB

Public Shared Function Parse(Of TEnum As {Structure, New}) ( 
	name As String,
	Optional ignoreCase As Boolean = false
) As TEnum

F#

static member Parse : 
        name : string * 
        ?ignoreCase : bool 
(* Defaults:
        let _ignoreCase = defaultArg ignoreCase false
*)
-> 'TEnum  when 'TEnum : struct, new()

Parameters

 

name
Type: System.String
The name.
ignoreCase (Optional)
Type: System.Boolean
If set to true the case of the name will be ignored.

Type Parameters

 

TEnum
The type of the enum.

Return Value

Type: TEnum
Parsed value.

See Also

Reference

EnumHelper Class
CodeJam Namespace

Clone this wiki locally