InternetAddressListConverterCanConvertTo(ITypeDescriptorContext, Type) Method

Returns whether this converter can convert the object to the specified type, using the specified context.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public 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, .

Remarks

Use 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