-
Type: New Feature
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
Affects Version/s: 1.0
-
Component/s: Feature Request
-
None
It would be nice if an implicit conversion from IEnumerable to BsonArray existed so we could write code like this:
var values = new int[]
{ 1, 2, 3 };
var document = new BsonDocument("array", values);
instead of:
var document = new BsonDocument("array", new BsonArray(values));
NOTE: make sure this implicit conversion doesn't have any undesirable side effects before implementing this request