Skip to content

M_CodeJam_EnumValues_GetByName_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 1 revision

EnumValues.GetByName Method (String, Boolean)

Tries to get enum field by its name.

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

Syntax

C#

public EnumValue GetByName(
	string name,
	bool ignoreCase
)

VB

Public Function GetByName ( 
	name As String,
	ignoreCase As Boolean
) As EnumValue

F#

member GetByName : 
        name : string * 
        ignoreCase : bool -> EnumValue 

Parameters

 

name
Type: System.String
Name of the enum field.
ignoreCase
Type: System.Boolean
if set to true the casing will be ignored.

Return Value

Type: EnumValue
Enum field with matching name.

See Also

Reference

EnumValues Class
GetByName Overload
CodeJam Namespace

Clone this wiki locally