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
IsReadOnly
public bool IsReadOnly { get; }
Property Value
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
Clear()
public void Clear()
Contains(TValue)
public bool Contains(TValue item)
Parameters
item
TValue
Returns
IndexOf(TValue)
public int IndexOf(TValue item)
Parameters
item
TValue
Returns
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
FindIndex(Predicate<TValue>)
public int FindIndex(Predicate<TValue> match)
Parameters
match
Predicate<TValue>
Returns
GetEnumerator()
public IEnumerator<TValue> GetEnumerator()
Returns
CreateSubType(TValueBase)
Creates a new instance of from the given
protected abstract TValue CreateSubType(TValueBase valueBase)
Parameters
valueBase
TValueBase
The base value
Returns
TValue