Class RepeatedExtension<TTarget, TValue>

public sealed class RepeatedExtension<TTarget, TValue> : Extension where TTarget : IExtendableMessage<TTarget>

Represents a type-safe extension identifier used for getting repeated extension values in IExtendableMessage<T> instances. This API is experimental and subject to change.

Inheritance

Object > Extension > RepeatedExtension<TTarget, TValue>

Namespace

Google.Protobuf

Assembly

Google.Protobuf.dll

Type Parameters

NameDescription
TTarget

The message type this field applies to

TValue

The repeated field value type of this extension

Constructors

RepeatedExtension(Int32, FieldCodec<TValue>)

public RepeatedExtension(int fieldNumber, FieldCodec<TValue> codec)

Creates a new repeated extension identifier with the specified field number and codec

Parameters
TypeNameDescription
Int32fieldNumber
FieldCodec<TValue>codec