Show / Hide Table of Contents

Class MapField<TKey, TValue>.Codec

A codec for a specific map field. This contains all the information required to encode and decode the nested messages.

Inheritance
System.Object
MapField<TKey, TValue>.Codec
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf.Collections
Assembly: Google.Protobuf.dll
Syntax
public sealed class Codec

Constructors

Codec(FieldCodec<TKey>, FieldCodec<TValue>, UInt32)

Creates a new entry codec based on a separate key codec and value codec, and the tag to use for each map entry.

Declaration
public Codec(FieldCodec<TKey> keyCodec, FieldCodec<TValue> valueCodec, uint mapTag)
Parameters
Type Name Description
FieldCodec<TKey> keyCodec

The key codec.

FieldCodec<TValue> valueCodec

The value codec.

System.UInt32 mapTag

The map tag to use to introduce each map entry.

Back to top