Class MergedList<T>
Namespace: Unity.VisualScripting
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 |
---|---|
Int32 |
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
Boolean |
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 |
---|---|
Boolean |
CopyTo(T[], Int32)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
T[] | array | |
Int32 | 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 |
---|---|
MergedList.Enumerator<> |
GetListForItem(T)
Declaration
protected IList<T> GetListForItem(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
IList<T> |
GetListForType(Type, Boolean)
Declaration
protected IList<T> GetListForType(Type type, bool throwOnFail = true)
Parameters
Type | Name | Description |
---|---|---|
Type | type | |
Boolean | throwOnFail |
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 |
---|---|
Boolean |
Implements
Includes<TI>()
Declaration
public bool Includes<TI>()
where TI : T
Returns
Type | Description |
---|---|
Boolean |
Type Parameters
Name | Description |
---|---|
TI |
Implements
Remove(T)
Declaration
public virtual bool Remove(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
Boolean |