Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dictionary<object, string> dic = new Dictionary<object, string>();
- object obj1 = new object();
- object obj2 = new object();
- dic[obj1] = "Hello obj1";
- dic[obj2] = "What obj2";
- var str1 = dic[obj1]; //Hello obj1
- var str2 = dic[obj2]; //What obj2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement