I am trying to make Dictionary case insensitive. But, I declare it as a property, how can I make that insensitive.
I know that while defining, I can use it like :
var dict = new Dictionary<string, YourClass>(
StringComparer.InvariantCultureIgnoreCase);
But, I am defining it in my interface and class respectively like
IDictionary<string, string> dict { get; }
public Dictionary<string, string> dict { get; set; }
How can I make this case insensitive ?