Should MongoDB.Bson.dll have a ToHashTable() method?

2 views
Skip to first unread message

Justin Dearing

unread,
Aug 13, 2011, 1:30:52 PM8/13/11
to mongo...@googlegroups.com
Hey,

Been using the .net BSON dll for non-mongo things more and more. Thanks Dwight, Elliot and Robert for making them separate dlls!

Anyway, ToHashTable() would be a nice extension method for me to have, and BsonDocument and HashTable are already more than kissing cousins with the shared interfaces and constructors. So Robert, would you accept a patch if I wrote one?

Justin

Robert Stam

unread,
Aug 13, 2011, 2:52:30 PM8/13/11
to mongodb-dev
In kind of sounds reasonable, although since it involves making an
extra copy of the data wouldn't it normally be better to just use the
BsonDocument directly?

I guess there are use cases where the conversion is unavoidable, so I
think a patch would be accepted.
Reply all
Reply to author
Forward
0 new messages