How do you make a dictionary case-insensitive?

In the Dictionary constructor you can specify how keys are compared. For string keys, the default is a case sensitive comparison. To make it case insensitive, you can pass in StringComparer. InvariantCultureIgnoreCase .

Sizin İçin Seçtik  Is ContainsKey case sensitive C#?

Leave a Reply

Your email address will not be published. Required fields are marked *