 | InternetAddressListConverterCanConvertTo(ITypeDescriptorContext, Type) Method |
Returns whether this converter can convert the object to the specified type, using the specified context.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.12.0
Syntaxpublic override bool CanConvertTo(
ITypeDescriptorContext context,
Type destinationType
)
Parameters
- context ITypeDescriptorContext
- An ITypeDescriptorContext that provides a format context.
- destinationType Type
- A Type that represents the type you want to convert to.
Return Value
Boolean if this converter can perform the conversion; otherwise,
.
RemarksUse the context parameter to extract additional information about the environment
from which this converter is invoked. This parameter can be , so always check it. Also,
properties on the context object can return .
If destinationType is a string, the default implementation of CanConvertTo(ITypeDescriptorContext, Type)
always returns .
See Also