I am trying to run this exact line, and it isn't working. Anyone know the reason why?
Convert.ToBoolean("verdadero", new System.Globalization.CultureInfo("ES-MX"));
I am parsing this from an xml file generated by a program that has many languages installed, and so it will use "true" in "EN-US" culture or "verdadero" in "ES-MX".
Interesting. Running Convert.ToBoolean through a decompiler emits this:
This makes it look like the IFormatProvider is completely disregarded.
I'm tempted to say it's a bug in the framework, but experience has taught me that I'm usually missing something when I come to that conclusion...