Method ConvertTo
ConvertTo(Nullable<ITypeDescriptorContext>, Nullable<CultureInfo>, Nullable<Object>, Type)
Converts the given value object to the specified type, using the specified context and culture information.
Declaration
public override object? ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
Parameters
Type | Name | Description |
---|---|---|
System. |
context | An System.ComponentModel.ITypeDescriptorContext that provides a format context. |
System. |
culture | A System.Globalization.CultureInfo. If null is passed, the current culture is assumed. |
System. |
value | The System.Object to convert. |
Type | destinationType | The System.Type to convert the value parameter to. |
Returns
Type | Description |
---|---|
System. |
An System.Object that represents the converted value. |
Applies to
Platforms and versions
Target | Versions |
---|---|
UWP | 100.15 |