New function sell stock started
This commit is contained in:
7
Helpers/Helpers.csproj
Normal file
7
Helpers/Helpers.csproj
Normal file
@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
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