# DialogChoice&lt;T&gt; constructor

Initializes a new instance of the [`DialogChoice`](../DialogChoice-1.md) class.

```csharp
public DialogChoice(string caption, T result)
```

| parameter | description |
| --- | --- |
| caption | The button caption. |
| result | The result returned when the button is pressed. |

## See Also

* class [DialogChoice&lt;T&gt;](../DialogChoice-1.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
