- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_EnumHelper_TryParse__1
        Andrew Koryavchenko edited this page Jun 17, 2018 
        ·
        5 revisions
      
    Try to parse the enum value.
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static Nullable<TEnum> TryParse<TEnum>(
	string name,
	bool ignoreCase = false
)
where TEnum : struct, new()VB
Public Shared Function TryParse(Of TEnum As {Structure, New}) ( 
	name As String,
	Optional ignoreCase As Boolean = false
) As Nullable(Of TEnum)F#
static member TryParse : 
        name : string * 
        ?ignoreCase : bool 
(* Defaults:
        let _ignoreCase = defaultArg ignoreCase false
*)
-> Nullable<'TEnum>  when 'TEnum : struct, new()
- 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: Nullable(TEnum)
Parsed value, if parsing was successful; null otherwise.