Edit

Share via


StringExtensions.IsNumeric(String) Method

Definition

Determines whether a string is a valid integer.

public static bool IsNumeric (this string? str);
static member IsNumeric : string -> bool
<Extension()>
Public Function IsNumeric (str As String) As Boolean

Parameters

str
String

The string to test.

Returns

true for a valid integer; otherwise, false.

Applies to