I have a requirement to use a dictionary in a project, but, as we know, they are accessible only with keys and do not use indexes, and I want to access elements in a dictionary using indexes. So I fiddled around the net and found out about OrderedDictionary, since they are accessible using indexes and keys, but they have a performance problem, and when I read / write a dictionary every minute of the day, itβs nice to use OrderedDictionary.
So my question here is that there is some alternative that gives me the functionality of a dictionary, and I can also access it using indexes and not cause performance issues.
source share