src/LaunchDarkly.EventSource/EventParser.cs
/// <summary>
/// Determines if the specified string is numeric (contains only numeric characters).
/// </summary>
/// <param name="value">The string value to inspect.</param>
/// <returns>
///   <c>true</c> if the string value is numeric; otherwise, <c>false</c>.
/// </returns>
Determines if the specified string is numeric (contains only numeric characters).
Determines if the specified string is numeric ( contains only numeric characters ) .
public static bool IsStringNumeric(string value)
        {
            if (string.IsNullOrWhiteSpace(value)) return false;
            return Regex.IsMatch(value, @"^[\d]+$");
        }
public static bool IsStringNumeric ( string value ) { if ( string . IsNullOrWhiteSpace ( value ) ) return false ; return Regex . IsMatch ( value , @"^[\d]+$" ) ; }
Determines if the specified string is numeric (contains only numeric characters).
Determines if the specified string is numeric ( contains only numeric characters ) .
None
value
string
The string value to inspect.
The string value to inspect .