Share via


PexChoose.EnumValue<T>(String) Method

Definition

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.

Applies to