ExtensionMethods.GetValueOrDefaultEnum<T>(String, T) Method

Definition

public static T GetValueOrDefaultEnum<T> (this string targetValue, T defaultValue);
static member GetValueOrDefaultEnum : string * 'T -> 'T
<Extension()>
Public Function GetValueOrDefaultEnum(Of T) (targetValue As String, defaultValue As T) As T

Type Parameters

T

Parameters

targetValue
String
defaultValue
T

Returns

T

Applies to