共用方式為


GeneralizedValueTypeSurrogateCodec<TField,TSurrogate> 類別

定義

和所有子類型的 Surrogate 序列化程式 TField

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

類型參數

TField

這個類別實作支援的型別。

TSurrogate

序列化的 Surrogate 型別會取代 TField

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

建構函式

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

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

方法

ConvertFromSurrogate(TSurrogate)

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

ConvertToSurrogate(TField, TSurrogate)

將值轉換為 Surrogate 型別。

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

讀取值。

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

寫入欄位。

適用於