ExtensionMethods.GetValueOrDefaultEnum<T>(String, T) 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.
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