[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 bool AsBool(
this string val,
bool dflt = false
)
public static bool AsBool(
this string val,
bool dflt = false
)
<ExtensionAttribute>
Public Shared Function AsBool (
val As String,
Optional dflt As Boolean = false
) As Boolean
<ExtensionAttribute>
Public Shared Function AsBool (
val As String,
Optional dflt As Boolean = false
) As Boolean
public:
[ExtensionAttribute]
static bool AsBool(
String^ val,
bool dflt = false
)
public:
[ExtensionAttribute]
static bool AsBool(
String^ val,
bool dflt = false
)
static member AsBool :
val : string *
?dflt : bool
(* Defaults:
let _dflt = defaultArg dflt false
*)
-> bool
static member AsBool :
val : string *
?dflt : bool
(* Defaults:
let _dflt = defaultArg dflt false
*)
-> bool
Return Value
Type:
BooleanUsage 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).