다음을 통해 공유


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)

값을 서로게이트 형식에서 필드 형식으로 변환합니다.

(다음에서 상속됨 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ConvertToSurrogate(ImmutableDictionary<TKey,TValue>, ImmutableDictionarySurrogate<TKey,TValue>)

에 대한 직렬 변환기입니다 ImmutableDictionary<TKey,TValue>.

ConvertToSurrogate(TField, TSurrogate)

값을 서로게이트 형식으로 변환합니다.

(다음에서 상속됨 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
ReadValue<TInput>(Reader<TInput>, Field)

값을 읽습니다.

(다음에서 상속됨 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)
WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, TField)

필드를 씁니다.

(다음에서 상속됨 GeneralizedReferenceTypeSurrogateCodec<TField,TSurrogate>)

적용 대상