I need to arrange the sorting of the dictionary, where the key will be a pair of enum and int and value is an object. So I want to map a pair to some object.
One of the options:
public enum SomeEnum { value1, value2 } class Key { public SomeEnum; public int counter;
Another option converts enum and int into some unique key.
string key = String.Format("{0}/{1}", enumValue, intValue)
This approach requires string parsing, a lot of extra work.
How to make it easy?
Captain comic
source share