Show / Hide Table of Contents

Class RepeatedExtension<TTarget, TValue>

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
System.Object
Extension
RepeatedExtension<TTarget, TValue>
Inherited Members
Extension.FieldNumber
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
Assembly: Google.Protobuf.dll
Syntax
public sealed class RepeatedExtension<TTarget, TValue> : Extension where TTarget : IExtendableMessage<TTarget>
Type Parameters
Name Description
TTarget

The message type this field applies to

TValue

The repeated field value type of this extension

Constructors

RepeatedExtension(Int32, FieldCodec<TValue>)

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

Declaration
public RepeatedExtension(int fieldNumber, FieldCodec<TValue> codec)
Parameters
Type Name Description
System.Int32 fieldNumber
FieldCodec<TValue> codec
Back to top