Method CreateWithPath
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
CreateWithPath(IEnumerable<string>, IBsonSerializer, Type)
Creates a new instance of the BsonSerializationinfo class with an element path instead of an element name.
public static BsonSerializationInfo CreateWithPath(IEnumerable<string> elementPath, IBsonSerializer serializer, Type nominalType)
Parameters
elementPath
IEnumerable<string>The element path.
serializer
IBsonSerializerThe serializer.
nominalType
TypeThe nominal type.
Returns
- BsonSerializationInfo
A BsonSerializationInfo.