Mongo C# Driver: Deserialize BsonValue
I have a document in mongodb that is structured similar to this: { "_id": "abcdef01234", "Name": "Product A", "Dimensions": [ { "Height": 32, "Width": 64 }, { "Height": 16, "Width": 32 }, { "Height": 8, "Width": 16 } ] } I also have a class defined to represent dimensions (the sub document from above) public class Dimension { public int Height { get; set; } public int Width { get; set; } } I am selecting the "Product A" document in this manner: MongoServer srv = MongoServer.Create(myConnStr); BsonDocument doc = srv["db"]["products"].FindOneById(ObjectId.Parse("abcdef01234")); BsonValue