I have a document in mongodb that is structured similar to this:
{ \"_id\": \"abcdef01234\", \"Name\": \"Product A\", \"Dimensions\": [ { \"Heigh
Here is how it can be done:
using MongoDB.Bson.Serialization; MongoServer srv = MongoServer.Create(myConnStr); BsonDocument doc = srv["db"]["products"].FindOneById(ObjectId.Parse("abcdef01234")); BsonValue dimVal = doc["Dimensions"]; List d = BsonSerializer.Deserialize>(dimVal.ToJson());