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.0.0.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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSerialize
When overridden from a derived class, it encodes the CLR object into the byte representation according to the Cassandra native protocol.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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