[This is preliminary documentation and is subject to change.]
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static Nullable<TEnum> AsNullableEnum<TEnum>(
this string val,
Nullable<TEnum> dflt = null
)
where TEnum : struct, new()
public static Nullable<TEnum> AsNullableEnum<TEnum>(
this string val,
Nullable<TEnum> dflt = null
)
where TEnum : struct, new()
<ExtensionAttribute>
Public Shared Function AsNullableEnum(Of TEnum As {Structure, New}) (
val As String,
Optional dflt As Nullable(Of TEnum) = Nothing
) As Nullable(Of TEnum)
<ExtensionAttribute>
Public Shared Function AsNullableEnum(Of TEnum As {Structure, New}) (
val As String,
Optional dflt As Nullable(Of TEnum) = Nothing
) As Nullable(Of TEnum)
public:
[ExtensionAttribute]
generic<typename TEnum>
where TEnum : value class, gcnew()
static Nullable<TEnum> AsNullableEnum(
String^ val,
Nullable<TEnum> dflt = nullptr
)
public:
[ExtensionAttribute]
generic<typename TEnum>
where TEnum : value class, gcnew()
static Nullable<TEnum> AsNullableEnum(
String^ val,
Nullable<TEnum> dflt = nullptr
)
static member AsNullableEnum :
val : string *
?dflt : Nullable<'TEnum>
(* Defaults:
let _dflt = defaultArg dflt null
*)
-> Nullable<'TEnum> when 'TEnum : struct, new()
static member AsNullableEnum :
val : string *
?dflt : Nullable<'TEnum>
(* Defaults:
let _dflt = defaultArg dflt null
*)
-> Nullable<'TEnum> when 'TEnum : struct, new()
- TEnum
Return Value
Type:
Nullable TEnum Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).