Table of Contents

Class BsonSerializationInfo

Namespace
MongoDB.Bson.Serialization
Assembly
MongoDB.Bson.dll

Represents the information needed to serialize a member.

public class BsonSerializationInfo
Inheritance
BsonSerializationInfo
Inherited Members
Extension Methods

Constructors

BsonSerializationInfo(string, IBsonSerializer, Type)

Initializes a new instance of the BsonSerializationInfo class.

Properties

ElementName

Gets the element name.

ElementPath

Gets element path.

NominalType

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.

DeserializeValue(BsonValue)

Deserializes the value.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

SerializeValue(object)

Serializes the value.

SerializeValues(IEnumerable)

Serializes the values.

WithNewName(string)

Creates a new BsonSerializationInfo object using the elementName provided and copying all other attributes.