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
TThe type of the object that is bound
TMemberThe 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
funcObservingFunc<T, TMember>The function that should be bound
setterAction<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
itemTThe element that should be bound
Returns
- IDisposable
A disposable instance. When disposed, the binding for the provided element ends.