共用方式為


GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate> 類別

定義

和所有子類型的 Surrogate 串行化程式 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

串行化的 Surrogate 型別會取代 TField

繼承
GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>
衍生
實作

建構函式

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

初始化 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate> 類別的新執行個體。

方法

ConvertFromSurrogate(TSurrogate)

將值從 Surrogate 類型轉換為欄位類型。

ConvertToSurrogate(TField, TSurrogate)

將值轉換為 Surrogate 型別。

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

讀取值。

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

寫入欄位。

適用於