Class TrackedCollectionExtensions
Inheritance
System.Object
TrackedCollectionExtensions
Assembly: Eco.Core.dll
Syntax
public static class TrackedCollectionExtensions : Object
Methods
ApplyChange(ITrackedControllerEnumerable, Action)
We apply the specified changes and then notify.
Declaration
public static void ApplyChange(this ITrackedControllerEnumerable list, Action change)
Parameters
ApplyChange<T>(ITrackedControllerEnumerable, Func<T>)
We apply the specified changes and return what's needed and then notify.
Declaration
public static T ApplyChange<T>(this ITrackedControllerEnumerable list, Func<T> change)
Parameters
Returns
Type Parameters
ApplyChangeConditional(ITrackedControllerEnumerable, Func<Boolean>)
We try to apply the changes and if we were succesful we notify. We return whether we were able to apply the changes or not.
Declaration
public static bool ApplyChangeConditional(this ITrackedControllerEnumerable list, Func<bool> change)
Parameters
Returns
Type |
Description |
System.Boolean |
|
NotifyChanged(ITrackedControllerEnumerable)
We notify the parent of this controller list and the list itself that it was changed (somethings were adedd/removed).
Declaration
public static void NotifyChanged(this ITrackedControllerEnumerable list)
Parameters
OnCurrentAndFutureEntries<T>(ITrackedEnumerable, Action<INetObject, T>, ISubscriptions<ThreadSafeSubscriptions>, Action<INetObject, T>)
Use watcher in order to have easy way to unsubscribe by Unwatch in object.
Declaration
public static void OnCurrentAndFutureEntries<T>(this ITrackedEnumerable list, Action<INetObject, T> func, ISubscriptions<ThreadSafeSubscriptions> watcher, Action<INetObject, T> funcUndo = null)
Parameters
Type Parameters