New function sell stock started

This commit is contained in:
2021-03-03 22:28:18 +01:00
parent 577aac2c4a
commit b41b2b0076
12 changed files with 632 additions and 4 deletions

7
Helpers/Helpers.csproj Normal file
View File

@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>

View 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 _);
}
}
}