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
  Cassandra.SerializationTypeSerializer
    Cassandra.SerializationTypeSerializerT
      Cassandra.SerializationCustomTypeSerializerT
      Cassandra.SerializationUdtSerializer

Namespace: Cassandra.Serialization
Assembly: Cassandra (in Cassandra.dll) Version: 3.3.0
Syntax
C#
public abstract class TypeSerializer<T> : TypeSerializer, 
	ITypeSerializer

Type Parameters

T
CLR type for this serializer

The TypeSerializerT type exposes the following members.

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
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
See Also