GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate> 类

定义

TField 所有子类型的代理序列化程序。

public abstract class GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate> : Orleans.Serialization.Codecs.IDerivedTypeCodec, Orleans.Serialization.Codecs.IFieldCodec<TField> where TField : class where TSurrogate : struct
type GeneralizedReferenceTypeSurrogateCodec<'Field, 'Surrogate (requires 'Field : null and 'Surrogate : struct)> = class
    interface IFieldCodec<'Field (requires 'Field : null)>
    interface IFieldCodec
    interface IDerivedTypeCodec
Public MustInherit Class GeneralizedReferenceTypeSurrogateCodec(Of TField, TSurrogate)
Implements IDerivedTypeCodec, IFieldCodec(Of TField)

类型参数

TField

此类的实现支持的类型。

TSurrogate

代理项类型序列化代替 TField

继承
GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>
派生
实现

构造函数

GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>(IValueSerializer<TSurrogate>)

初始化 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate> 类的新实例。

方法

ConvertFromSurrogate(TSurrogate)

将值从代理项类型转换为字段类型。

ConvertToSurrogate(TField, TSurrogate)

将值转换为代理项类型。

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

读取值。

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

写入字段。

适用于