According to the MSDN documentation on the StringComparer.OrdinalIgnoreCase property:
The OrdinalIgnoreCase property actually returns an instance of an anonymous class derived from the StringComparer class.
Is this a feature I'm unfamiliar with—anonymous types with inheritance? Or by "anonymous class" did the author simply mean "internal class deriving from StringComparer, not visible to client code"?
It's not an anonymous type in the normal C# meaning of the term.
It's just a type which is internal, so you don't know the name of it: you can't refer to the exact type within your code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With