DelegateConverter.ConvertDelegate Delegate
Represents a delegate that can be used to convert a value.
public delegate object? DelegateConverter.ConvertDelegate(object? value, Type targetType, object? parameter, CultureInfo culture)
Parameters
| Name | Type | Description |
|---|---|---|
| value | object | The value produced by the binding source. |
| targetType | Type | The type of the binding target property. |
| parameter | object | The converter parameter to use. |
| culture | CultureInfo | The culture to use in the converter. |
Returns
| Type | Description |
|---|---|
| object | A converted value. If the method returns null, the valid null value is used. |
Constructors
ConvertDelegate(object, nint)
public ConvertDelegate(object @object, nint method)
| Parameter | Type | Description |
|---|---|---|
| object | object | |
| method | nint |
Methods
BeginInvoke(object?, Type, object?, CultureInfo, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(object? value, Type targetType, object? parameter, CultureInfo culture, AsyncCallback callback, object @object)
| Parameter | Type | Description |
|---|---|---|
| value | object | |
| targetType | Type | |
| parameter | object | |
| culture | CultureInfo | |
| callback | AsyncCallback | |
| object | object |
Returns
EndInvoke(IAsyncResult)
public virtual object? EndInvoke(IAsyncResult result)
| Parameter | Type | Description |
|---|---|---|
| result | IAsyncResult |
Returns
Invoke(object?, Type, object?, CultureInfo)
public virtual object? Invoke(object? value, Type targetType, object? parameter, CultureInfo culture)
| Parameter | Type | Description |
|---|---|---|
| value | object | |
| targetType | Type | |
| parameter | object | |
| culture | CultureInfo |