I have this C++ code
static const int category[] = {LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME};
int op;
...
/* op = 0; => The entire locale. */
op = 3; /* => Affects monetary formatting information */
char *setl = setlocale(category[op], "fr-FR");
I find
Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("fr-FR");
// OR
Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR");
which I think must be the equivalent of
setlocale( LC_ALL, "fr-FR" );
But in C#, how can I specifies the category argument for change locale information of a program?