Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dicts.SelectMany(d => d.Keys).Distinct().ToArray();
- Dictionary<DateTime, double> dic = new Dictionary<DateTime, double>()
- {
- {DateTime.Now, 111}
- };
- Dictionary<DateTime, double> dic2 = new Dictionary<DateTime, double>()
- {
- {DateTime.Now, 111}
- };
- var list = dic.ToList();
- list.AddRange(dic2.ToList());
- var final = list.Distinct().ToDictionary(x => x.Key, x => x.Value);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement