There is no reason to use this overload if you specify the culture as InvariantCulture because this is the default value.
From the documentation here :
An invariant culture is used for comparison.
Please note that there are some cases where this would make a difference if you did not use the InvariantCulture , the most notorious Turkish Problem I.
The following code illustrates the problem:
Thread.CurrentThread.CurrentCulture = new CultureInfo("tr-TR"); Assert.AreEqual("i", "I", true, CultureInfo.CurrentCulture); // This throws. Assert.AreEqual("i", "I", true, CultureInfo.InvariantCulture); // This doesn't throw. Assert.AreEqual("i", "I", true); // This doesn't throw.
However, note that this will not affect you because you are using an invariant culture.
source share