57 return base.CanConvertTo(context, destinationType);
62 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"InstanceDescriptor calls GetType(string) on AssemblyQualifiedName of instance of type we already have in here.")]
65 if (destinationType ==
null)
69 if (destinationType == typeof(
string))
75 return value.ToString();
82 for (
int i = 0; i <
s_types.Length; i++)
99 return base.ConvertTo(context,
culture,
value, destinationType);
104 if (!(sourceType == typeof(
string)))
106 return base.CanConvertTo(context, sourceType);
113 if (
value !=
null &&
value.GetType() == typeof(
string))
115 for (
int i = 0; i <
s_types.Length; i++)
122 return typeof(
string);
static unsafe void Copy(Array sourceArray, Array destinationArray, int length)
override bool GetStandardValuesSupported(ITypeDescriptorContext context)
override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
StandardValuesCollection _values
static readonly Type[] s_types
override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)