Google.Protobuf.Collections.RepeatedField<T>
public sealed class RepeatedField<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection, IDeepCloneable<RepeatedField<T>>, IEquatable<RepeatedField<T>>, IReadOnlyList<T>, IReadOnlyCollection<T>
The contents of a repeated field: essentially, a collection with some extra
restrictions (no null values) and capabilities (deep cloning).
Gets and sets the capacity of the RepeatedField's internal array.
When set, the internal array is reallocated to the given capacity.
The new value is less than Count.
Gets the number of elements contained in the collection.
Gets a value indicating whether the collection is read-only.
Gets or sets the item at the specified index.
public RepeatedField()
Adds the specified item to the collection.
Adds all of the specified values into this collection. This method is present to
allow repeated fields to be constructed from queries within collection initializers.
Within non-collection-initializer code, consider using the equivalent AddRange
method instead for clarity.
Adds the entries from the given input stream, decoding them with the specified codec.
Adds the entries from the given parse context, decoding them with the specified codec.
Adds all of the specified values into this collection.
Calculates the size of this collection based on the given codec.
Removes all items from the collection.
Creates a deep clone of this repeated field.
Determines whether this collection contains the given item.
Copies this collection to the given array.
Compares this repeated field with another for equality.
Returns an enumerator that iterates through the collection.
Returns the index of the given item within the collection, or -1 if the item is not
present.
Inserts the given item at the specified index.
Removes the specified item from the collection
Removes the item at the given index.
Writes the contents of this collection to the given CodedOutputStream,
encoding each value using the specified codec.
Writes the contents of this collection to the given write context,
encoding each value using the specified codec.