Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. Dictionary<string[], string> d = new Dictionary<string[], string>();
  2. d.Add(new[] { "email@yahoo.com", "test@yahoo.com" }, "Group 1");
  3. d.Add(new[] { "myemail@gmail.com", "checkit@gmail.com" }, "Group 2");
  4.  
  5. string keycheck = "email@yahoo.com";
  6. string val = "";
  7.  
  8. d.TryGetValue(keycheck, out string k);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement