Class ReversableExtensions
Describes extensions to support reversable operations
Inherited Members
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public static class ReversableExtensions
Methods
| Edit this page View SourceAsReversable<T>(INotifyValue<T>, Action<T>)
Turns the given value into a reversable by providing an explicit put operation
Declaration
public static INotifyValue<T> AsReversable<T>(this INotifyValue<T> value, Action<T> reversableHandler)
Parameters
Type | Name | Description |
---|---|---|
INotifyValue<T> | value | The incremental value |
Action<T> | reversableHandler | The put operation |
Returns
Type | Description |
---|---|
INotifyValue<T> | A reversable incremental value |
Type Parameters
Name | Description |
---|---|
T | The element type |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if reversableHandler is null |