Determines the specific cultures that use the Chinese language, and displays the parent culture
using System;
using System.Globalization;
public class SamplesCultureInfo
{
public static void Main()
{
foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
{
if (ci.TwoLetterISOLanguageName == "zh")
{
Console.Write("0x{0} {1} {2,-40}", ci.LCID.ToString("X4"), ci.Name, ci.EnglishName);
Console.WriteLine("0x{0} {1} {2}", ci.Parent.LCID.ToString("X4"), ci.Parent.Name, ci.Parent.EnglishName);
}
}
}
}
Related examples in the same category