PexChoose.EnumValue<T>(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value from a specified enum
type.
public:
generic <typename T>
where T : value class static T EnumValue(System::String ^ name);
public static T EnumValue<T> (string name) where T : struct;
static member EnumValue : string -> 'T (requires 'T : struct)
Public Shared Function EnumValue(Of T As Structure) (name As String) As T
Type Parameters
- T
The enum
type.
Parameters
- name
- String
A name.
Returns
T
Returns a value from the enum.