Add project files.
This commit is contained in:
13
Helpers/StringExtensions.cs
Normal file
13
Helpers/StringExtensions.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Helpers
|
||||
{
|
||||
public static class StringExtensions
|
||||
{
|
||||
public static bool IsNumeric(this string s)
|
||||
{
|
||||
return float.TryParse(s, NumberStyles.Float | NumberStyles.Integer, CultureInfo.CurrentUICulture, out _);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user