Skip to main content

IAttributeValueList<TValue>

Namespace: Meshmakers.Octo.Runtime.Contracts.RepositoryEntities

Interface for attribute value arrays

public interface IAttributeValueList<TValue> : IList<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable

Type Parameters

TValue

Implements IList<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable

Methods

AddRange(IEnumerable<TValue>)

Adds the elements of the given collection to the end of this list. If required, the capacity of the list is increased to twice the previous capacity or the new size, whichever is larger.

void AddRange(IEnumerable<TValue> collection)

Parameters

collection IEnumerable<TValue>
The list that need to be added.

RemoveAll(Predicate<TValue>)

This method removes all items which matches the predicate. The complexity is O(n).

int RemoveAll(Predicate<TValue> match)

Parameters

match Predicate<TValue>
The match delegate function

Returns

Int32
Amount of matches

FindIndex(Predicate<TValue>)

Finds the index of the first item which matches the predicate.

int FindIndex(Predicate<TValue> match)

Parameters

match Predicate<TValue>
The match delegate function

Returns

Int32
Index of the first element matching the predicate