Redigera

Dela via


ReadOnlyDictionaryCodec<TKey,TValue> Class

Definition

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

Type Parameters

TKey
TValue
Inheritance
ReadOnlyDictionaryCodec<TKey,TValue>
Attributes

Constructors

ReadOnlyDictionaryCodec<TKey,TValue>(IValueSerializer<ReadOnlyDictionarySurrogate<TKey,TValue>>)

Methods

ConvertFromSurrogate(ReadOnlyDictionarySurrogate<TKey,TValue>)
ConvertFromSurrogate(TSurrogate)

Converts a value from the surrogate type to the field type.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ReadOnlyDictionary<TKey,TValue>, ReadOnlyDictionarySurrogate<TKey,TValue>)
ConvertToSurrogate(TField, TSurrogate)

Converts a value to the surrogate type.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

Reads a value.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

Writes a field.

(Inherited from GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

Applies to