Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IDictionary<object, SortedDictionary<string, object>> mongoDocs = prog.GetAllVMMongo(prog._mongoDatabaseName, vmCollection)
- .GetAwaiter()
- .GetResult()
- .Select(_ => _.ToDictionary()
- .Where(__ => __.Key != "_id")
- .ToSortedDictionary())
- .ToDictionary(_ => (Int32.TryParse((string)_[collectionKey], out int food) ? (int)_[collectionKey] : (string)_[collectionKey]), _ => _);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement