NumberFormatInfo.Digit Substitution
using System;
using System.Globalization;
class Sample
{
public static void Main()
{
CultureInfo westernCI = new CultureInfo("en-US");
CultureInfo arabicCI = new CultureInfo("ar-SA");
CultureInfo thaiCI = new CultureInfo("th-TH");
DigitShapes shape;
string name;
string intro = "{0} {1}.";
name = westernCI.EnglishName;
shape = westernCI.NumberFormat.DigitSubstitution;
Console.WriteLine(intro, name, shape);
name = arabicCI.EnglishName;
shape = arabicCI.NumberFormat.DigitSubstitution;
Console.WriteLine(intro, name, shape);
name = thaiCI.EnglishName;
shape = thaiCI.NumberFormat.DigitSubstitution;
Console.WriteLine(intro, name, shape);
}
}
Related examples in the same category