Class TypeSerializerDefinitions
Contains TypeSerializer<T> definitions for the driver to use, replacing the default ones.
Inherited Members
Namespace: Cassandra.Serialization
Assembly: Cassandra.dll
Syntax
public class TypeSerializerDefinitions
Methods
Define<T>(TypeSerializer<T>)
Defines a new TypeSerializer<T> instance to use.
If you try to define a serializer for a type that was already defined, the driver will log a warning and ignore it.
Declaration
public TypeSerializerDefinitions Define<T>(TypeSerializer<T> typeSerializer)
Parameters
Type | Name | Description |
---|---|---|
TypeSerializer<T> | typeSerializer |
Returns
Type | Description |
---|---|
TypeSerializerDefinitions |
Type Parameters
Name | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | |
InvalidTypeException | When trying to define a Serializer for types that are not allowed. |