Class TypeSerializer
A serializer that can encode and decode to and from a given CQL type and a given CLR Type.
Inheritance
System.Object
TypeSerializer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Dse.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 |
System.DateTimeOffset |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|