Show / Hide Table of Contents

Class Binding<T, TMember>

Denotes a binding of type T

Inheritance
object
Binding<T, TMember>
Implements
IBinding<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 class Binding<T, TMember> : IBinding<T>
Type Parameters
Name Description
T

The type of the object that is bound

TMember

The value type of the binding

Constructors

| Edit this page View Source

Binding(ObservingFunc<T, TMember>, Action<T, TMember>)

Creates a new binding

Declaration
public Binding(ObservingFunc<T, TMember> func, Action<T, TMember> setter)
Parameters
Type Name Description
ObservingFunc<T, TMember> func

The function that should be bound

Action<T, TMember> setter

The setter to which the function should be bound

Methods

| Edit this page View Source

Bind(T)

Executes the binding for the given element

Declaration
public IDisposable Bind(T item)
Parameters
Type Name Description
T item

The element that should be bound

Returns
Type Description
IDisposable

A disposable instance. When disposed, the binding for the provided element ends.

Implements

IBinding<T>

Extension Methods

ExpressionExtensions.AsOne<T>(T)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX