Click or drag to resize

ScalarDiscriminatorConvention Methods

The ScalarDiscriminatorConvention type exposes the following members.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetActualType
Gets the actual type of an object by reading the discriminator from a BsonReader.
(Inherited from StandardDiscriminatorConvention.)
Public methodGetDiscriminator
Gets the discriminator value for an actual type.
(Overrides StandardDiscriminatorConventionGetDiscriminator(Type, Type).)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Extension Methods
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
See Also