Redigera

Dela via


NullableCodec<T> Class

Definition

Serializer for Nullable<T>.

[Orleans.RegisterSerializer]
public sealed class NullableCodec<T> : Orleans.Serialization.Codecs.IFieldCodec<T?> where T : struct
[<Orleans.RegisterSerializer>]
type NullableCodec<'T (requires 'T : struct)> = class
    interface IFieldCodec<Nullable<'T>>
    interface IFieldCodec
Public NotInheritable Class NullableCodec(Of T)
Implements IFieldCodec(Of Nullable(Of T))

Type Parameters

T

The element type.

Inheritance
NullableCodec<T>
Attributes
Implements

Constructors

NullableCodec<T>(IFieldCodec<T>)

Initializes a new instance of the NullableCodec<T> class.

Methods

ReadValue<TInput>(Reader<TInput>, Field)

Reads a value.

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, Nullable<T>)

Writes a field.

Applies to