ValueSerializer<TField,TValueSerializer> 类

定义

值类型的序列化程序。

public sealed class ValueSerializer<TField,TValueSerializer> : Orleans.Serialization.Codecs.IFieldCodec<TField> where TField : struct where TValueSerializer : IValueSerializer<TField>
type ValueSerializer<'Field, 'ValueSerializer (requires 'Field : struct and 'ValueSerializer :> IValueSerializer<'Field>)> = class
    interface IFieldCodec<'Field (requires 'Field : struct)>
    interface IFieldCodec
Public NotInheritable Class ValueSerializer(Of TField, TValueSerializer)
Implements IFieldCodec(Of TField)

类型参数

TField

字段类型。

TValueSerializer

值类型序列化程序实现类型。

继承
ValueSerializer<TField,TValueSerializer>
实现

构造函数

ValueSerializer<TField,TValueSerializer>(TValueSerializer)

初始化 ValueSerializer<TField,TValueSerializer> 类的新实例。

方法

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

读取值。

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

写入字段。

适用于