When you perform an OrdinalIgnoreCase string comparison:
The StringComparer returned by the OrdinalIgnoreCase property treats the characters in the strings to compare as if they were converted to uppercase using the conventions of the invariant culture, and then performs a simple byte comparison that is independent of language.
To replicate OrdinalIgnoreCase
for chars instead of strings, you call char.ToUpperInvariant
on the two characters, then test for equality.