The invariant culture is culture-insensitive; it is associated with the English language but not with any country/region. You specify the invariant culture by name by using an empty string ("") in the call to a CultureInfo instantiation method. CultureInfo.InvariantCulture also retrieves an instance of the invariant culture.
Why would we want that? We don’t wany any culture involved and we don’t want any friendly formatting.
we know exactly what format we want.
so you specify it.
G is general
and the other is generic english culture
Eric J. Smith
yes, general as in format it how you would for the general culture.
we don’t want them to format it for us.
we know the format.
G is still for friendly display purposes.
[2/9/16, 10:43:54 AM] Greg Marzouka: dont think we have tests that use different locales [2/9/16, 10:44:10 AM] Greg Marzouka: but we do CultureInfo.InvariantCulture [2/9/16, 10:44:15 AM] Greg Marzouka: so i think that should fix it
that’s from the elastic guy
Eric J. Smith
dude, we don’t want culture involved in any way… we don’t want the format open to interpretation of how the system thinks it should be formatted… we know what format we want.
When you say G you are saying to use whatever format the system thinks is appropriate… and you say invariant culture so it goes to see what the friendly format for that culture is…
but we know exactly what format we want, so why would you leave it open to interpretation?