Basically, I want something like this: Dictionary<object, string> dict = new Dictionary<object, string>();