다음을 통해 공유


KeyValuePairCodec<TKey,TValue> 클래스

정의

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

[Orleans.RegisterSerializer]
public sealed class KeyValuePairCodec<TKey,TValue> : Orleans.Serialization.Codecs.IFieldCodec<System.Collections.Generic.KeyValuePair<TKey,TValue>>
[<Orleans.RegisterSerializer>]
type KeyValuePairCodec<'Key, 'Value> = class
    interface IFieldCodec<KeyValuePair<'Key, 'Value>>
    interface IFieldCodec
Public NotInheritable Class KeyValuePairCodec(Of TKey, TValue)
Implements IFieldCodec(Of KeyValuePair(Of TKey, TValue))

형식 매개 변수

TKey

키 형식입니다.

TValue

값 형식입니다.

상속
KeyValuePairCodec<TKey,TValue>
특성
구현

생성자

KeyValuePairCodec<TKey,TValue>(IFieldCodec<TKey>, IFieldCodec<TValue>)

KeyValuePairCodec<TKey,TValue> 클래스의 새 인스턴스를 초기화합니다.

메서드

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

값을 읽습니다.

WriteField<TBufferWriter>(Writer<TBufferWriter>, UInt32, Type, KeyValuePair<TKey,TValue>)

필드를 씁니다.

적용 대상