Interface ILoadCollection
Assembly: Experior.Interfaces.dll
Syntax
public interface ILoadCollection : IEnumerable<ILoad>, IEnumerable
Properties
Values
Declaration
IReadOnlyCollection<ILoad> Values { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<ILoad> |
|
Methods
Add(ILoad)
Declaration
Parameters
Type |
Name |
Description |
ILoad |
load |
The load
|
AddRange(IEnumerable<ILoad>)
Declaration
void AddRange(IEnumerable<ILoad> loads)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<ILoad> |
loads |
|
Any()
Declaration
Returns
Type |
Description |
System.Boolean |
|
Clear()
Declaration
Contains(ILoad)
Declaration
bool Contains(ILoad item)
Parameters
Type |
Name |
Description |
ILoad |
item |
|
Returns
Type |
Description |
System.Boolean |
|
Count(Func<ILoad, Boolean>)
Declaration
int Count(Func<ILoad, bool> predicate = null)
Parameters
Type |
Name |
Description |
System.Func<ILoad, System.Boolean> |
predicate |
|
Returns
Type |
Description |
System.Int32 |
|
Get(Func<ILoad, Boolean>)
Declaration
IReadOnlyCollection<ILoad> Get(Func<ILoad, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<ILoad, System.Boolean> |
predicate |
|
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<ILoad> |
|
Get(String)
Declaration
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Get(UInt64)
Declaration
ILoad Get(ulong entityid)
Parameters
Type |
Name |
Description |
System.UInt64 |
entityid |
|
Returns
GetEnumerator()
Declaration
IEnumerator<ILoad> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<ILoad> |
|
OfType<T>()
Filters the list of loads based on a specified type.
Declaration
IReadOnlyCollection<T> OfType<T>()
where T : ILoad
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<T> |
An System.Collections.Generic.IEnumerable<T> that contains elements from the input sequence of type T .
|
Type Parameters
Name |
Description |
T |
The type to filter the elements of the sequence on.
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
|
Remove(ILoad)
Remove specified load from the load list (i.e. no rendering, no appearance in list, forms etc).
The load will NOT be disposed by removing it from this list.
Declaration
Parameters
Type |
Name |
Description |
ILoad |
item |
|
Returns
Type |
Description |
System.Boolean |
true if successfully removed, otherwise false
|
RemoveRange(IEnumerable<ILoad>)
Remove specified loads from loads list (i.e. no rendering, no appearance in list, forms etc).
The loads will NOT be disposed by removing them from this list.
Declaration
bool RemoveRange(IEnumerable<ILoad> loads)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<ILoad> |
loads |
|
Returns
Type |
Description |
System.Boolean |
true if successfully removed, otherwise false
|
Where(Func<ILoad, Boolean>)
Declaration
IReadOnlyCollection<ILoad> Where(Func<ILoad, bool> predicate)
Parameters
Type |
Name |
Description |
System.Func<ILoad, System.Boolean> |
predicate |
|
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyCollection<ILoad> |
|
Events
OnLoadsAdded
Raised when loads are added to the collection.
Declaration
event EventHandler<LoadCollectionChangedEventArgs> OnLoadsAdded
Event Type
OnLoadsRemoved
Raised when loads are removed to the collection.
Declaration
event EventHandler<LoadCollectionChangedEventArgs> OnLoadsRemoved
Event Type