Zum Hauptinhalt springen

AttributeValueList<TValueBase, TValue>

Namespace: Meshmakers.Octo.Runtime.Contracts.RepositoryEntities

Represents a list of attribute values

public abstract class AttributeValueList<TValueBase, TValue> : IAttributeValueList<TValue>, IList<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable

Type Parameters​

TValueBase
The base type of the data type

TValue
An inherited type of the base type

Inheritance Object → AttributeValueList<TValueBase, TValue>
Implements IAttributeValueList<TValue>, IList<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable

Properties​

Item​

public TValue Item { get; set; }

Property Value​

TValue

Count​

public int Count { get; }

Property Value​

Int32

IsReadOnly​

public bool IsReadOnly { get; }

Property Value​

Boolean

Methods​

Add(TValue)​

public void Add(TValue value)

Parameters​

value TValue

CopyTo(TValue[], Int32)​

public void CopyTo(TValue[] array, int arrayIndex)

Parameters​

array TValue[]

arrayIndex Int32

Remove(TValue)​

public bool Remove(TValue value)

Parameters​

value TValue

Returns​

Boolean

Clear()​

public void Clear()

Contains(TValue)​

public bool Contains(TValue item)

Parameters​

item TValue

Returns​

Boolean

IndexOf(TValue)​

public int IndexOf(TValue item)

Parameters​

item TValue

Returns​

Int32

Insert(Int32, TValue)​

public void Insert(int index, TValue item)

Parameters​

index Int32

item TValue

RemoveAt(Int32)​

public void RemoveAt(int index)

Parameters​

index Int32

AddRange(IEnumerable<TValue>)​

public void AddRange(IEnumerable<TValue> collection)

Parameters​

collection IEnumerable<TValue>

RemoveAll(Predicate<TValue>)​

public int RemoveAll(Predicate<TValue> match)

Parameters​

match Predicate<TValue>

Returns​

Int32

FindIndex(Predicate<TValue>)​

public int FindIndex(Predicate<TValue> match)

Parameters​

match Predicate<TValue>

Returns​

Int32

GetEnumerator()​

public IEnumerator<TValue> GetEnumerator()

Returns​

IEnumerator<TValue>

CreateSubType(TValueBase)​

Creates a new instance of TValue from the given TValueBase

protected abstract TValue CreateSubType(TValueBase valueBase)

Parameters​

valueBase TValueBase
The base value

Returns​

TValue