Concerts a string to its enum value
Namespace:
Hummingbird.TestFramework
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public static T ToEnum<T>(
string str
)
Public Shared Function ToEnum(Of T) (
str As String
) As T
public:
generic<typename T>
static T ToEnum(
String^ str
)
static member ToEnum :
str : string -> 'T
Parameters
- str
- Type: SystemString
The string value.
Type Parameters
- T
- Enum Type
Return Value
Type:
TConverted enumeration value from the given string.
See Also