I have a Dictionary called AvailableBoxes. I want to lookup a string in this dictionary. However, I want to compare lowercase (and ignore special chars).
I found out that I can do the following to know if the key exists in the dictionary:
AvailableBoxes.Keys.Contains(CurrentBox.Name, new BoxNameEqualityComparer())
BoxNameEqualityComparer is my own comparer that implements IEqualityComparer.
But is there a similar way to find the index of this key?