- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_EnumHelper_Parse__1
        Andrew Koryavchenko edited this page Jul 4, 2017 
        ·
        5 revisions
      
    Parse the enum value.
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)
C#
public static TEnum Parse<TEnum>(
	string name,
	bool ignoreCase = false
)
where TEnum : struct, new(), IComparable, IFormattable, IConvertibleVB
Public Shared Function Parse(Of TEnum As {Structure, New, IComparable, IFormattable, IConvertible}) ( 
	name As String,
	Optional ignoreCase As Boolean = false
) As TEnumF#
static member Parse : 
        name : string * 
        ?ignoreCase : bool 
(* Defaults:
        let _ignoreCase = defaultArg ignoreCase false
*)
-> 'TEnum  when 'TEnum : struct, new() and IComparable and IFormattable and IConvertible
- name
- Type: System.String
 The name.
- ignoreCase (Optional)
- Type: System.Boolean
 If set totruethe case of the name will be ignored.
- TEnum
- The type of the enum.
Type: TEnum
Parsed value.