Class TypeSerializerDefinitions
Contains TypeSerializer<T> definitions for the driver to use, replacing the default ones.
Inheritance
object
TypeSerializerDefinitions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 |
---|---|
System.ArgumentNullException | |
InvalidTypeException | When trying to define a Serializer for types that are not allowed. |