simple and light converter for use in .NET Core projects.
you can add this package from nuget.
Install-Package Moraba.Converter.Core -Version 1.0.2
dotnet add package Moraba.Converter.Core --version 1.0.2
try
{
string persianNumbers = "-۱۲۳۴۵";
string englishNumber = Moraba.Converter.Numbers.Convert.PersianToEnglishInt32(persianNumbers);
//output : "-12345"
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}