I'm trying to get the relationship between results of string comparison when using StringComparer.OrdinalignoreCase
and StringComparer.InvariantCultureIgnoreCase
. More precisely I would like to know which of the following four statements is true:
a == b using StringComparer.OrdinalIgnoreCase
, thena == b using StringComparer.InvariantCultureIgnoreCase
a != b using StringComparer.OrdinalIgnoreCase
, thena != b using StringComparer.InvariantCultureIgnoreCase
a == b using StringComparer.InvariantCultureIgnoreCase
, thena == b using StringComparer.OrdinalIgnoreCase
a != b using StringComparer.InvariantCultureIgnoreCase
, thena != b using StringComparer.OrdinalIgnoreCase
So far I know statement number 3 is not true because of the example of a = STRASSE
and b = Straße
from a comment in this question.
Ideally I would like to have an explanation why a statement is true or an example when it is not true.