# DualBinding<T> class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public class DualBinding<T> : Binding
```

Binding for joining two object bindings together

**Remarks:** The DualBinding is the most useful binding, as it allows you to bind two objects together. This differs from the [IndirectBinding<T>](https://eto.picoe.ca/api/type/eto.forms.indirectbinding-1.md) where it only specifies how to get/set the value from a single object.

**Type parameters:**

- `T`

## Constructors

- [DualBinding<T>](https://eto.picoe.ca/api/type/eto.forms.dualbinding-1/ctor.md): (2 overloads) Initializes a new instance of the DualBinding class with two specified bindings

## Properties

- [Destination](https://eto.picoe.ca/api/type/eto.forms.dualbinding-1/destination.md): Gets the destination binding
- [Mode](https://eto.picoe.ca/api/type/eto.forms.dualbinding-1/mode.md): Gets the mode of the binding
- [Source](https://eto.picoe.ca/api/type/eto.forms.dualbinding-1/source.md): Gets the source binding

## Methods

- [SetDestination](https://eto.picoe.ca/api/type/eto.forms.dualbinding-1/setdestination.md): Sets the destination object's property with the value of the source
- [SetSource](https://eto.picoe.ca/api/type/eto.forms.dualbinding-1/setsource.md): Sets the source object's property with the value of the destination
- [ToString](https://eto.picoe.ca/api/type/eto.forms.dualbinding-1/tostring.md): Returns a `String` that represents the current `DualBinding`.
- [Unbind](https://eto.picoe.ca/api/type/eto.forms.dualbinding-1/unbind.md): Unbinds both the source and destination bindings
- [Update](https://eto.picoe.ca/api/type/eto.forms.dualbinding-1/update.md): Updates the binding value (sets the source with the value of the destination)

## Inherited Members

- From [Binding](https://eto.picoe.ca/api/type/eto.forms.binding.md): [Changed](https://eto.picoe.ca/api/type/eto.forms.binding/changed.md), [Changing](https://eto.picoe.ca/api/type/eto.forms.binding/changing.md), [HandleEvent](https://eto.picoe.ca/api/type/eto.forms.binding/handleevent.md), [OnChanged](https://eto.picoe.ca/api/type/eto.forms.binding/onchanged.md), [OnChanging](https://eto.picoe.ca/api/type/eto.forms.binding/onchanging.md), [RemoveEvent](https://eto.picoe.ca/api/type/eto.forms.binding/removeevent.md)
