How to deserialize Bson Document in mongo db using c# driver
var REsult = BsonSerializer.Deserialize<BsonDocument[]>(new Address().GetAddress(20).ToJson());
See here "Address" is the class name and "GetAddress" is its methood.Now Getting the value from that class
it stores in to "BsonDocument".After that it has been serialized


ambati ambatiPosted Jun 2, 2011, 1:03 AM EDT
var REsult = BsonSerializer.Deserialize<BsonDocument[]>(new Address().GetAddress(20).ToJson());