StringUtils.ParseInt32 method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Strings |
---|---|
Assembly | Skybrud.Essentials.dll |
ParseInt32(string)
Static
Parses the specified str
into an instance of int . If the parsing fails,
the default value of int will be returned instead.
public static int ParseInt32(string str)
Parameters
str
String
The string to be parsed.
ParseInt32(string, int)
Static
Parses the specified str
into an instance of int . If the parsing fails,
fallback
will be returned instead.
public static int ParseInt32(string str, int fallback)