ParseEnum<T>(String,T) Method
In This Topic
Parses an enum value from a string, which may contain either the text or numeric value for the enum.
Syntax
'Declaration
Public Overloads Shared Function ParseEnum(Of As {New, Enum, Struct})( _
ByVal As String, _
ByVal As _
) As
public static ParseEnum<>(
string ,
)
where T: new(), Enum, struct
public:
static ParseEnumgeneric<typename >
(
String^ ,
)
where T: gcnew(), Enum, value class
Parameters
- source
- defaultValue
Type Parameters
- T
See Also