How can I call ToString() on an object and make it use the invariant culture?
There are overloads for ToString() on objects that implement IConvertible (like bool, int, float..), but what if the object in question is not IConvertible?
How can I call ToString() on an object and make it use the invariant
Share
I think
IFormattableis the relevant interface. It has aToStringmethod that lets you specify the format provider, which can be a culture.