.NET Client Documentation
5.2.2
Search Results for

    Show / Hide Table of Contents

    AddSerializer Method

    AddSerializer<TSerialized>(ICompactSerializer<TSerialized>)

    Adds a serializer.

    Declaration
    public void AddSerializer<TSerialized>(ICompactSerializer<TSerialized> serializer) where TSerialized : notnull
    Parameters
    ICompactSerializer<TSerialized> serializer

    The compact serializer.

    Type Parameters
    TSerialized

    The serialized type.

    Exceptions
    ArgumentNullException

    The serializer is null.

    ConfigurationException

    The operation conflicts with information that were already provided.

    AddSerializer(ICompactSerializer)

    Adds a serializer.

    Declaration
    public void AddSerializer(ICompactSerializer serializer)
    Parameters
    ICompactSerializer serializer

    The serialized type.

    Exceptions
    ArgumentNullException

    The serializer is null.

    ArgumentException

    The serializer does not implement ICompactSerializer<T>.

    ConfigurationException

    The operation conflicts with information that were already provided.

    AddSerializer<TSerializerSerialized, TSerialized>(ICompactSerializer<TSerializerSerialized>)

    Adds a serializer.

    Declaration
    public void AddSerializer<TSerializerSerialized, TSerialized>(ICompactSerializer<TSerializerSerialized> serializer) where TSerializerSerialized : notnull where TSerialized : TSerializerSerialized
    Parameters
    ICompactSerializer<TSerializerSerialized> serializer

    The serializer.

    Type Parameters
    TSerializerSerialized

    The type serialized by the serializer.

    TSerialized

    The type for which the serializer is added.

    Exceptions
    ArgumentNullException

    The serializer is null.

    ConfigurationException

    The operation conflicts with information that were already provided.

    In This Article
    Back to top Copyright © 2010-2023 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.