Class VariantList<TBase, TImplementation>
Inherited Members
Namespace: Unity.VisualScripting
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
Type | Description |
---|---|
int |
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
bool |
this[int]
Declaration
public TBase this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index |
Property Value
Type | Description |
---|---|
TBase |
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
public void Clear()
Contains(TBase)
Declaration
public bool Contains(TBase item)
Parameters
Type | Name | Description |
---|---|---|
TBase | item |
Returns
Type | Description |
---|---|
bool |
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
Type | Description |
---|---|
No |
IndexOf(TBase)
Declaration
public int IndexOf(TBase item)
Parameters
Type | Name | Description |
---|---|---|
TBase | item |
Returns
Type | Description |
---|---|
int |
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
Type | Description |
---|---|
bool |
RemoveAt(int)
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |