Class Binding<T, TMember>
- Namespace
- NMF.Expressions
- Assembly
- NMF.Expressions.Utilities.dll
Denotes a binding of type T
public class Binding<T, TMember> : IBinding<T>
Type Parameters
T
The type of the object that is bound
TMember
The value type of the binding
- Inheritance
-
Binding<T, TMember>
- Implements
-
IBinding<T>
- Inherited Members
- Extension Methods
Constructors
Binding(ObservingFunc<T, TMember>, Action<T, TMember>)
Creates a new binding
public Binding(ObservingFunc<T, TMember> func, Action<T, TMember> setter)
Parameters
func
ObservingFunc<T, TMember>The function that should be bound
setter
Action<T, TMember>The setter to which the function should be bound
Methods
Bind(T)
Executes the binding for the given element
public IDisposable Bind(T item)
Parameters
item
TThe element that should be bound
Returns
- IDisposable
A disposable instance. When disposed, the binding for the provided element ends.