Show / Hide Table of Contents

Class Binding<T>

Helper class to create bindings

Inheritance
object
Binding<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

Create<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

| Edit this page View Source

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

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX