共用方式為


ImmutableDictionaryCodec<TKey,TValue> 類別

定義

ImmutableDictionary<TKey,TValue> 序列化程式。

[Orleans.RegisterSerializer]
public sealed class ImmutableDictionaryCodec<TKey,TValue> : Orleans.Serialization.Codecs.GeneralizedReferenceTypeSurrogateCodec<System.Collections.Immutable.ImmutableDictionary<TKey,TValue>,Orleans.Serialization.Codecs.ImmutableDictionarySurrogate<TKey,TValue>>
[<Orleans.RegisterSerializer>]
type ImmutableDictionaryCodec<'Key, 'Value> = class
    inherit GeneralizedReferenceTypeSurrogateCodec<ImmutableDictionary<'Key, 'Value>, ImmutableDictionarySurrogate<'Key, 'Value>>
Public NotInheritable Class ImmutableDictionaryCodec(Of TKey, TValue)
Inherits GeneralizedReferenceTypeSurrogateCodec(Of ImmutableDictionary(Of TKey, TValue), ImmutableDictionarySurrogate(Of TKey, TValue))

類型參數

TKey

索引鍵類型。

TValue

值型別。

繼承
ImmutableDictionaryCodec<TKey,TValue>
屬性

建構函式

ImmutableDictionaryCodec<TKey,TValue>(IValueSerializer<ImmutableDictionarySurrogate<TKey,TValue>>)

初始化 ImmutableDictionaryCodec<TKey,TValue> 類別的新執行個體。

方法

ConvertFromSurrogate(ImmutableDictionarySurrogate<TKey,TValue>)

ImmutableDictionary<TKey,TValue> 序列化程式。

ConvertFromSurrogate(TSurrogate)

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

(繼承來源 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ImmutableDictionary<TKey,TValue>, ImmutableDictionarySurrogate<TKey,TValue>)

ImmutableDictionary<TKey,TValue> 序列化程式。

ConvertToSurrogate(TField, TSurrogate)

將值轉換為 Surrogate 型別。

(繼承來源 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

讀取值。

(繼承來源 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

寫入欄位。

(繼承來源 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

適用於