InternetAddressListConverterConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Method

Converts the given value object to the specified type, using the specified context and culture information.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public override Object? ConvertTo(
	ITypeDescriptorContext? context,
	CultureInfo? culture,
	Object? value,
	Type destinationType
)

Parameters

context  ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
culture  CultureInfo
A CultureInfo. If , the current culture is assumed.
value  Object
The Object to convert.
destinationType  Type
The Type to convert the value to.

Return Value

Object
An Object that represents the converted value.

Remarks

Converts the given value object to the specified type, using the specified context and culture information.

Exceptions

ArgumentNullException destinationType is .
NotSupportedException The conversion cannot be performed.

See Also