Class MergedList<T>
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Core.dll
Syntax
public class MergedList<T> : IMergedCollection<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Constructors
MergedList()
Declaration
public MergedList()
Fields
lists
Declaration
protected readonly Dictionary<Type, IList<T>> lists
Field Value
Type | Description |
---|---|
Dictionary<Type, IList<T>> |
Properties
Count
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Add(T)
Declaration
public virtual void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Clear()
Declaration
public virtual void Clear()
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
bool |
CopyTo(T[], int)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
T[] | array | |
int | arrayIndex |
ForType<TI>()
Declaration
public IList<TI> ForType<TI>() where TI : T
Returns
Type | Description |
---|---|
IList<TI> |
Type Parameters
Name | Description |
---|---|
TI |
GetEnumerator()
Declaration
public MergedList<T>.Enumerator GetEnumerator()
Returns
Type | Description |
---|---|
Merged |
GetListForItem(T)
Declaration
protected IList<T> GetListForItem(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
IList<T> |
GetListForType(Type, bool)
Declaration
protected IList<T> GetListForType(Type type, bool throwOnFail = true)
Parameters
Returns
Type | Description |
---|---|
IList<T> |
Include<TI>(IList<TI>)
Declaration
public virtual void Include<TI>(IList<TI> list) where TI : T
Parameters
Type | Name | Description |
---|---|---|
IList<TI> | list |
Type Parameters
Name | Description |
---|---|
TI |
Includes(Type)
Declaration
public bool Includes(Type elementType)
Parameters
Type | Name | Description |
---|---|---|
Type | elementType |
Returns
Type | Description |
---|---|
bool |
Includes<TI>()
Declaration
public bool Includes<TI>() where TI : T
Returns
Type | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
TI |
Remove(T)
Declaration
public virtual bool Remove(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
bool |