Method IsOnlyDigits
IsOnlyDigits(String)
Returns true if value contains only characters representing numeric digits.
Declaration
public static bool IsOnlyDigits(this string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The string to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean | Returns true if |
Remarks
A character is a digit if System.Char.IsDigit(System.Char) returns true.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown if |
| System.ArgumentException | Thrown if |