Share via


PexSettingsStoreAttributeBase.GetEnumValue<T>(String, T) Method

Definition

Gets the enum value.

protected:
generic <typename T>
 T GetEnumValue(System::String ^ name, T defaultValue);
protected T GetEnumValue<T> (string name, T defaultValue);
member this.GetEnumValue : string * 'T -> 'T
Protected Function GetEnumValue(Of T) (name As String, defaultValue As T) As T

Type Parameters

T

must be enum

Parameters

name
String

The name.

defaultValue
T

The default value.

Returns

T

Applies to