-
Type: New Feature
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.0
-
Component/s: Feature Request
-
None
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.