tags:

views:

45

answers:

1

is this snippet at the bottom add the language code to the dictionary object

foreach (CultureInfo ObjectCultureInfo in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
    {
        RegionInfo objRegionInfo = new RegionInfo(ObjectCultureInfo.Name);
        if (!objDic.ContainsKey(objRegionInfo.EnglishName))
        {
            objDic.Add(objRegionInfo.EnglishName, ObjectCultureInfo.Name);
        }
    }

this part ObjectCultureInfo.Name

A: 

Have a look on MSDN for the CultureInfo.Name property or use the debugger to see what value it holds.

Greg B