Class BsonSerializationInfo
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
Represents the information needed to serialize a member.
- Inheritance
-
Bson
Serialization Info
- Inherited Members
- Extension Methods
Constructors
- Bson
Serialization Info(string, IBson Serializer, Type) Initializes a new instance of the BsonSerializationInfo class.
Properties
- Element
Name Gets the element name.
- Element
Path Gets element path.
- Nominal
Type Gets or sets the nominal type.
- Serializer
Gets or sets the serializer.
Methods
- CreateWithPath(IEnumerable<string>, IBsonSerializer, Type)
Creates a new instance of the BsonSerializationinfo class with an element path instead of an element name.
- Deserialize
Value(Bson Value) Deserializes the value.
- Merge(Bson
Serialization Info) Merges the new BsonSerializationInfo by taking its properties and concatenating its ElementName.
- Serialize
Value(object) Serializes the value.
- Serialize
Values(IEnumerable) Serializes the values.
- With
New Name(string) Creates a new BsonSerializationInfo object using the elementName provided and copying all other attributes.