Show / Hide Table of Contents

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.Nullable<ITypeDescriptorContext> context

An System.ComponentModel.ITypeDescriptorContext that provides a format context.

System.Nullable<CultureInfo> culture

A System.Globalization.CultureInfo. If null is passed, the current culture is assumed.

System.Nullable<System.Object> value

The System.Object to convert.

Type destinationType

The System.Type to convert the value parameter to.

Returns
Type Description
System.Nullable<System.Object>

An System.Object that represents the converted value.

Applies to

Platforms and versions
TargetVersions
UWP100.15
In This Article
Back to top Copyright © 2022 Esri.