I'm in charge of organizing a legacy project and I found this extension method:
public static string FormatInv(this string str, params object[] args)
{
return String.Format(CultureInfo.InvariantCulture, str, args);
}
There are several hundreds of calls to this, but all of them are passing strings to it as parameters.
I'm thinking of getting rid of it and from what I understand if string objects are being passed, the CultureInfo.InvariantCulture will have no effect at all. Am I missing something and there is a case in which this could change a string value?