TypeMappingSerializationProvider Class |
Namespace: MongoDB.Bson.Serialization
The TypeMappingSerializationProvider type exposes the following members.
| Name | Description | |
|---|---|---|
| TypeMappingSerializationProvider |
Initializes a new instance of the TypeMappingSerializationProvider class.
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetSerializer(Type) |
Gets a serializer for a type.
(Inherited from BsonSerializationProviderBase.) | |
| GetSerializer(Type, IBsonSerializerRegistry) |
Gets a serializer for a type.
(Overrides BsonSerializationProviderBaseGetSerializer(Type, IBsonSerializerRegistry).) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| RegisterMapping |
Registers the serializer mapping.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
| ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
| ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |