- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_EnumHelper_TryParse__1_2
        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 bool TryParse<TEnum>(
	string name,
	out TEnum result
)
where TEnum : struct, new()VB
Public Shared Function TryParse(Of TEnum As {Structure, New}) ( 
	name As String,
	<OutAttribute> ByRef result As TEnum
) As BooleanF#
static member TryParse : 
        name : string * 
        result : 'TEnum byref -> bool  when 'TEnum : struct, new()
- name
- Type: System.String
 The name.
- result
- Type: TEnum
 The parsed value.
- TEnum
- The type of the enum.
Type: Booleantrue, if parsing was successful; false otherwise.