Details
-
New Feature
-
Resolution: Done
-
Minor - P4
-
1.0
-
None
Description
It would be nice if BsonArray had ToArray and ToList methods so we could write code like:
var document = new BsonDocument("array", new BsonArray
{ 1, 2, 3 });
var list = document["array"].AsBsonArray.ToList<int>();
instead of:
var list = document["array"].AsBsonArray.Select(v => v.AsInt32).ToList();
or something similar if there's a better alternative.