Normally you can get it by writing something like
CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;
But this way you can only ge
There are the classes CultureInfo
and TextInfo
from the namespace System.Globalization
. Both classes get several windows regional settings defined in the control panels. The list of available settings is in the documentation.
For example:
string separator = CultureInfo.CurrentCulture.TextInfo.ListSeparator;
is getting the list separator for the program which is running.