121
96.7
Dec 16, 2010
Zhang:
What if you create a unique hash for the 3 concatenated keys?
Then use this as the unique key in a regular Dictionary.
So, something like:
Dictionary<string, object> dictionary = new Dictionary<string, object>();
and then:
dictionary.Add( Hash(key1, key2, key3), myObject);
where Hash is a simple method that concatenates the 3 keys (the arguments) and returns a hash.