Class VariantList<TBase, TImplementation>
Inheritance
VariantList<TBase, TImplementation>
Assembly: Unity.VisualScripting.Core.dll
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
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
this[int]
Declaration
public TBase this[int index] { get; set; }
Parameters
Type |
Name |
Description |
int |
index |
|
Property Value
implementation
Declaration
public IList<TImplementation> implementation { get; }
Property Value
Type |
Description |
IList<TImplementation> |
|
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[], int)
Declaration
public void CopyTo(TBase[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
TBase[] |
array |
|
int |
arrayIndex |
|
GetEnumerator()
Declaration
public NoAllocEnumerator<TBase> GetEnumerator()
Returns
IndexOf(TBase)
Declaration
public int IndexOf(TBase item)
Parameters
Type |
Name |
Description |
TBase |
item |
|
Returns
Insert(int, TBase)
Declaration
public void Insert(int index, TBase item)
Parameters
Type |
Name |
Description |
int |
index |
|
TBase |
item |
|
Remove(TBase)
Declaration
public bool Remove(TBase item)
Parameters
Type |
Name |
Description |
TBase |
item |
|
Returns
RemoveAt(int)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Implements
Extension Methods