[]
Converts the specified DateTimeRange to another representation.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Public Overrides Function ConvertTo(context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object
| Type | Name | Description |
|---|---|---|
| ITypeDescriptorContext | context | The type descriptor context. |
| CultureInfo | culture | The culture information used for formatting dates. |
| object | value | The DateTimeRange to convert. |
| Type | destinationType | The target type of the conversion. |
| Type | Description |
|---|---|
| object | A string representation of the DateTimeRange in the expected format, or an empty string if the value is null. |
| Type | Condition |
|---|---|
| NotSupportedException | Thrown when the conversion to |