Class Binding<T>
Helper class to create bindings
Inherited Members
Namespace: NMF.Expressions
Assembly: NMF.Expressions.Utilities.dll
Syntax
public static class Binding<T>
Type Parameters
Name | Description |
---|---|
T | The type of bindings |
Methods
| Edit this page View SourceCreate<TMember>(Expression<Func<T, TMember>>, Action<T, TMember>)
Creates a new binding for the type T
Declaration
public static IBinding<T> Create<TMember>(Expression<Func<T, TMember>> func, Action<T, TMember> setter)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, TMember>> | func | The function the member should be bound to |
Action<T, TMember> | setter | The setter function for the member |
Returns
Type | Description |
---|---|
IBinding<T> | A binding |
Type Parameters
Name | Description |
---|---|
TMember | The type of the member that should be bound |
Create<TMember>(Expression<Func<T, TMember>>, Expression<Func<T, TMember>>)
Creates a new binding for the type T
Declaration
public static IBinding<T> Create<TMember>(Expression<Func<T, TMember>> func, Expression<Func<T, TMember>> member)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, TMember>> | func | The function the member should be bound to |
Expression<Func<T, TMember>> | member | The member that should be bound |
Returns
Type | Description |
---|---|
IBinding<T> | A binding |
Type Parameters
Name | Description |
---|---|
TMember | The type of the member that should be bound |