Click or drag to resize

TypeSerializerT Class

An abstract class that represents a serializer that can encode and decode to and from a given CQL type and a given CLR Type.
Inheritance Hierarchy
SystemObject
  Dse.SerializationTypeSerializer
    Dse.SerializationTypeSerializerT
      Dse.SerializationCustomTypeSerializerT
      Dse.SerializationUdtSerializer

Namespace:  Dse.Serialization
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public abstract class TypeSerializer<T> : TypeSerializer

Type Parameters

T
CLR type for this serializer

The TypeSerializerT type exposes the following members.

Properties
  NameDescription
Public propertyCqlType
Returns the Cassandra data type for the serializer.
Public propertyType
Gets the CLR type for this serializer.
Public propertyTypeInfo
Gets the type information for which this serializer is valid.

Intended for non-primitive types such as custom types and UDTs. For primitive types, it should return null.

Top
Methods
  NameDescription
Public methodDeserialize
When overridden from a derived class, it reads the byte buffer and returns the CLR representation of the data type.
Public methodSerialize
When overridden from a derived class, it encodes the CLR object into the byte representation according to the Cassandra native protocol.
Top
See Also