Click or drag to resize

BsonSerializer Class

A static class that represents the BSON serialization functionality.
Inheritance Hierarchy
SystemObject
  MongoDB.Bson.SerializationBsonSerializer

Namespace:  MongoDB.Bson.Serialization
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
public static class BsonSerializer

The BsonSerializer type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberSerializerRegistry
Gets the serializer registry.
Public propertyStatic memberUseNullIdChecker
Gets or sets whether to use the NullIdChecker on reference Id types that don't have an IdGenerator registered.
Public propertyStatic memberUseZeroIdChecker
Gets or sets whether to use the ZeroIdChecker on value Id types that don't have an IdGenerator registered.
Top
Methods
  NameDescription
Public methodStatic memberDeserialize(BsonDocument, Type, ActionBsonDeserializationContextBuilder)
Deserializes an object from a BsonDocument.
Public methodStatic memberDeserialize(Byte, Type, ActionBsonDeserializationContextBuilder)
Deserializes an object from a BSON byte array.
Public methodStatic memberDeserialize(IBsonReader, Type, ActionBsonDeserializationContextBuilder)
Deserializes a value.
Public methodStatic memberDeserialize(Stream, Type, ActionBsonDeserializationContextBuilder)
Deserializes an object from a BSON Stream.
Public methodStatic memberDeserialize(String, Type, ActionBsonDeserializationContextBuilder)
Deserializes an object from a JSON string.
Public methodStatic memberDeserialize(TextReader, Type, ActionBsonDeserializationContextBuilder)
Deserializes an object from a JSON TextReader.
Public methodStatic memberDeserializeTNominalType(BsonDocument, ActionBsonDeserializationContextBuilder)
Deserializes an object from a BsonDocument.
Public methodStatic memberDeserializeTNominalType(Byte, ActionBsonDeserializationContextBuilder)
Deserializes an object from a BSON byte array.
Public methodStatic memberDeserializeTNominalType(IBsonReader, ActionBsonDeserializationContextBuilder)
Deserializes a value.
Public methodStatic memberDeserializeTNominalType(Stream, ActionBsonDeserializationContextBuilder)
Deserializes an object from a BSON Stream.
Public methodStatic memberDeserializeTNominalType(String, ActionBsonDeserializationContextBuilder)
Deserializes an object from a JSON string.
Public methodStatic memberDeserializeTNominalType(TextReader, ActionBsonDeserializationContextBuilder)
Deserializes an object from a JSON TextReader.
Public methodStatic memberIsTypeDiscriminated
Returns whether the given type has any discriminators registered for any of its subclasses.
Public methodStatic memberLookupActualType
Looks up the actual type of an object to be deserialized.
Public methodStatic memberLookupDiscriminatorConvention
Looks up the discriminator convention for a type.
Public methodStatic memberLookupIdGenerator
Looks up an IdGenerator.
Public methodStatic memberLookupSerializer(Type)
Looks up a serializer for a Type.
Public methodStatic memberLookupSerializerT
Looks up a serializer for a Type.
Public methodStatic memberRegisterDiscriminator
Registers the discriminator for a type.
Public methodStatic memberRegisterDiscriminatorConvention
Registers the discriminator convention for a type.
Public methodStatic memberRegisterGenericSerializerDefinition
Registers a generic serializer definition for a generic type.
Public methodStatic memberRegisterIdGenerator
Registers an IdGenerator for an Id Type.
Public methodStatic memberRegisterSerializationProvider
Registers a serialization provider.
Public methodStatic memberRegisterSerializer(Type, IBsonSerializer)
Registers a serializer for a type.
Public methodStatic memberRegisterSerializerT(IBsonSerializerT)
Registers a serializer for a type.
Public methodStatic memberSerialize(IBsonWriter, Type, Object, ActionBsonSerializationContextBuilder, BsonSerializationArgs)
Serializes a value.
Public methodStatic memberSerializeTNominalType(IBsonWriter, TNominalType, ActionBsonSerializationContextBuilder, BsonSerializationArgs)
Serializes a value.
Top
See Also