StringExtensions.IsInt32 method
Version 1.1.28
.NET Framework 4.8
| Namespace | Skybrud.Essentials.Strings.Extensions |
|---|---|
| Assembly | Skybrud.Essentials.dll |
IsInt32(string)
Static
Gets whether the string matches an integer (int ).
public static bool IsInt32(string str)
Parameters
str
String
The string to validate.
Returns
true if str matches an integer; otherwise false.
IsInt32(string, out int)
Static
Returns whether the specified value matches an integer.
public static bool IsInt32(string value, int result)
Parameters
value
String
The value to check.
Returns
true if value matches an integer; otherwise false.