Class TypeSerializer
A serializer that can encode and decode to and from a given CQL type and a given CLR Type.
Inheritance
object
TypeSerializer
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Assembly: Cassandra.dll
Syntax
public abstract class TypeSerializer
Fields
PrimitiveAsciiStringSerializer
Declaration
public static readonly TypeSerializer<string> PrimitiveAsciiStringSerializer
Field Value
PrimitiveBigIntegerSerializer
Declaration
public static readonly TypeSerializer<BigInteger> PrimitiveBigIntegerSerializer
Field Value
PrimitiveBooleanSerializer
Declaration
public static readonly TypeSerializer<bool> PrimitiveBooleanSerializer
Field Value
PrimitiveByteArraySerializer
Declaration
public static readonly TypeSerializer<byte[]> PrimitiveByteArraySerializer
Field Value
PrimitiveDateTimeOffsetSerializer
Declaration
public static readonly TypeSerializer<DateTimeOffset> PrimitiveDateTimeOffsetSerializer
Field Value
PrimitiveDateTimeSerializer
Declaration
public static readonly TypeSerializer<DateTime> PrimitiveDateTimeSerializer
Field Value
PrimitiveDecimalSerializer
Declaration
public static readonly TypeSerializer<decimal> PrimitiveDecimalSerializer
Field Value
PrimitiveDoubleSerializer
Declaration
public static readonly TypeSerializer<double> PrimitiveDoubleSerializer
Field Value
PrimitiveDurationSerializer
Declaration
public static readonly TypeSerializer<Duration> PrimitiveDurationSerializer
Field Value
PrimitiveFloatSerializer
Declaration
public static readonly TypeSerializer<float> PrimitiveFloatSerializer
Field Value
PrimitiveGuidSerializer
Declaration
public static readonly TypeSerializer<Guid> PrimitiveGuidSerializer
Field Value
PrimitiveIntSerializer
Declaration
public static readonly TypeSerializer<int> PrimitiveIntSerializer
Field Value
PrimitiveIpAddressSerializer
Declaration
public static readonly TypeSerializer<IPAddress> PrimitiveIpAddressSerializer
Field Value
PrimitiveLocalDateSerializer
Declaration
public static readonly TypeSerializer<LocalDate> PrimitiveLocalDateSerializer
Field Value
PrimitiveLocalTimeSerializer
Declaration
public static readonly TypeSerializer<LocalTime> PrimitiveLocalTimeSerializer
Field Value
PrimitiveLongSerializer
Declaration
public static readonly TypeSerializer<long> PrimitiveLongSerializer
Field Value
PrimitiveSbyteSerializer
Declaration
public static readonly TypeSerializer<sbyte> PrimitiveSbyteSerializer
Field Value
PrimitiveShortSerializer
Declaration
public static readonly TypeSerializer<short> PrimitiveShortSerializer
Field Value
PrimitiveStringSerializer
Declaration
public static readonly TypeSerializer<string> PrimitiveStringSerializer
Field Value
PrimitiveTimeUuidSerializer
Declaration
public static readonly TypeSerializer<TimeUuid> PrimitiveTimeUuidSerializer
Field Value
Methods
SinceUnixEpoch(DateTimeOffset)
Returns the time interval since unix epoch.
Declaration
public static TimeSpan SinceUnixEpoch(DateTimeOffset value)
Parameters
Type |
Name |
Description |
DateTimeOffset |
value |
|
Returns
Type |
Description |
TimeSpan |
|