Class MergedList<T>
Inheritance
MergedList<T>
Syntax
public class MergedList<T> : IMergedCollection<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Constructors
MergedList()
Declaration
Fields
lists
Declaration
protected readonly Dictionary<Type, IList<T>> lists
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
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
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
GetEnumerator()
Declaration
public MergedList<T>.Enumerator GetEnumerator()
Returns
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
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
Includes(Type)
Declaration
public bool Includes(Type elementType)
Parameters
Type |
Name |
Description |
Type |
elementType |
|
Returns
Implements
Includes<TI>()
Declaration
public bool Includes<TI>()
where TI : T
Returns
Type Parameters
Implements
Remove(T)
Declaration
public virtual bool Remove(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Extension Methods