MongoDBb C# driver equivalent to getFieldDotted in MongoDb C++ driver?
I have used the MongoDB driver more or less in C++ only. But now I need it also in C#. For one of my functionalities I use the function "getFieldDotted" of class BSONObj to get a BSONElement is a deeper tree of the BSONObj. It seems that an equiqalent functionality does not exits in C# driver!? All tries to use an "dotted" element name result in an exception "KeyNotFoundException" even if the key exist. Any ideas?
From what I found out, there is no equivalent to the C++ driver "getFieldDotted" function. The C# driver is able to use "array indices": value=BsonDoc["Element"]["AnOtherElement"]; I used this. It is the best for my requirements accessing specific elements that are at fixed positions in the BSON object without looping or searching.
Serialize Dictionary<long, VALUE> to BSON documents
Using a Regex against a simple list with `ElemMatch` in MongoDB .NET
projection wont work in mongodb c# driver
BsonClassMapSerializer already registered for AbstractClassSerializer
MongoDb C# Driver 2.0 Coalesce (or equivalent)?
MongoDB dynamic update of collection when changes occurs in another collection
MongoDB C# 2.0 TimeoutException
MongoDB C# 2.0 upgrade
Searching a MongoDB collection from the end (c#)
Handle extra elements outside of deserialized class
ASP.NET 5 with MongoDB
Store same fields twice during serialization
BsonDefaultValue set to empty list
Don't overwrite extra fields when serializing BSON?
MongoDB C# - how to save arbitrary JSON document as dynamic type?
mondodb linq query fails - is it mongodb driver or linq