Primitively Primitively
Primitively Primitively
DocFX + Singulink = ♥

Search Results for

    Class BsonSerializerManager

    Provides a concrete implementation of IBsonSerializerManager for managing BSON serializers.

    Inheritance
    object
    BsonSerializerManager
    Implements
    IBsonSerializerManager
    Namespace: Primitively.MongoDB.Bson.Serialization
    Assembly: Primitively.MongoDB.Bson.dll
    Syntax
    public class BsonSerializerManager : IBsonSerializerManager
    Remarks

    This class is a wrapper around the MongoDB.Bson.Serialization.BsonSerializer class and provides a concrete implementation of IBsonSerializerManager for managing BSON serializers.

    Methods

    LookupSerializer(Type)

    Looks up a BSON serializer for the specified type.

    Declaration
    public IBsonSerializer LookupSerializer(Type type)
    Parameters
    Type Name Description
    Type type

    The type for which to find a serializer.

    Returns
    Type Description
    IBsonSerializer

    The BSON serializer for the specified type.

    TryRegisterSerializer(Type, IBsonSerializer)

    Attempts to register a BSON serializer for the specified type.

    Declaration
    public bool TryRegisterSerializer(Type type, IBsonSerializer serializer)
    Parameters
    Type Name Description
    Type type

    The type for which to register a serializer.

    IBsonSerializer serializer

    The serializer to register.

    Returns
    Type Description
    bool

    true if the serializer was registered successfully; otherwise, false.

    Implements

    IBsonSerializerManager
    © Electronic Hands. All rights reserved.