Advertisement
nevik34

Untitled

Apr 25th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. IDictionary<object, SortedDictionary<string, object>> mongoDocs = prog.GetAllVMMongo(prog._mongoDatabaseName, vmCollection)
  2. .GetAwaiter()
  3. .GetResult()
  4. .Select(_ => _.ToDictionary()
  5. .Where(__ => __.Key != "_id")
  6. .ToSortedDictionary())
  7. .ToDictionary(_ => (Int32.TryParse((string)_[collectionKey], out int food) ? (int)_[collectionKey] : (string)_[collectionKey]), _ => _);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement