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