public sealed class MapField<TKey, TValue>.CodecA codec for a specific map field. This contains all the information required to encode and decode the nested messages.
Namespace
Google.Protobuf.CollectionsAssembly
Google.Protobuf.dll
Constructors
Codec(FieldCodec<TKey>, FieldCodec<TValue>, uint)
public Codec(FieldCodec<TKey> keyCodec, FieldCodec<TValue> valueCodec, uint mapTag)Creates a new entry codec based on a separate key codec and value codec, and the tag to use for each map entry.
| Parameters | |
|---|---|
| Name | Description |
keyCodec |
FieldCodecThe key codec. |
valueCodec |
FieldCodecThe value codec. |
mapTag |
uintThe map tag to use to introduce each map entry. |