Last post Nov 23, 2007 06:06 PM by Tryst
Nov 22, 2007 06:38 PM|Tryst|LINK
Culture settings has always confused me. I have the following code to see what Culture my code is running in locally...
Assembly asm = Assembly.GetExecutingAssembly();
CultureInfo ci = asm.GetName().CultureInfo;
Why is the CultureInfo.DisplayName set to "Invariant Language"?
Doesn't this valuable get picked up from the 'Regional and Language Options' in the Control Panel.
Hope you can help.
Nov 23, 2007 12:46 PM|vcsjones|LINK
No, that is the culture for the assembly. Most of the time, it will be Invariant Language. Only Satellite Assemblies have a specific culture. If you want to get the culture of the current operating system, you would use
Nov 23, 2007 06:06 PM|Tryst|LINK
Ok, thanks Kevin