Class VariantList<TBase, TImplementation>
Inheritance
VariantList<TBase, TImplementation>
Syntax
public class VariantList<TBase, TImplementation> : IList<TBase>, ICollection<TBase>, IEnumerable<TBase>, IEnumerable where TImplementation : TBase
Type Parameters
Name |
Description |
TBase |
|
TImplementation |
|
Constructors
VariantList(IList<TImplementation>)
Declaration
public VariantList(IList<TImplementation> implementation)
Parameters
Type |
Name |
Description |
IList<TImplementation> |
implementation |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
implementation
Declaration
public IList<TImplementation> implementation { get; }
Property Value
Type |
Description |
IList<TImplementation> |
|
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Item[Int32]
Declaration
public TBase this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Methods
Add(TBase)
Declaration
public void Add(TBase item)
Parameters
Type |
Name |
Description |
TBase |
item |
|
Clear()
Declaration
Contains(TBase)
Declaration
public bool Contains(TBase item)
Parameters
Type |
Name |
Description |
TBase |
item |
|
Returns
CopyTo(TBase[], Int32)
Declaration
public void CopyTo(TBase[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
TBase[] |
array |
|
Int32 |
arrayIndex |
|
GetEnumerator()
Declaration
public NoAllocEnumerator<TBase> GetEnumerator()
Returns
IndexOf(TBase)
Declaration
public int IndexOf(TBase item)
Parameters
Type |
Name |
Description |
TBase |
item |
|
Returns
Insert(Int32, TBase)
Declaration
public void Insert(int index, TBase item)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
TBase |
item |
|
Remove(TBase)
Declaration
public bool Remove(TBase item)
Parameters
Type |
Name |
Description |
TBase |
item |
|
Returns
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Extension Methods