Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. System.Collections.Generic.Dictionary<string, int> dic = new System.Collections.Generic.Dictionary<string, int>();
  2. System.Collections.ObjectModel.ReadOnlyDictionary<string, int> o = new System.Collections.ObjectModel.ReadOnlyDictionary<string, int>(dic);
  3. Dictionary<string, int> l1 = o.ToDictionary<string, int>(S => dic[S.Key]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement