Base:
method
ConvertTo
System.ComponentModel.TypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, System.Object, System.Type)
4 references to ConvertTo
System.Xaml.Tests (4)
System\Xaml\Schema\XamlTypeTypeConverterTests.cs (4)
226
Assert.Equal("prefix:Int32", converter.
ConvertTo
(context, null, type, typeof(string)));
249
Assert.Equal(type.ToString(), converter.
ConvertTo
(context, null, type, typeof(string)));
259
Assert.Equal(value ?? string.Empty, converter.
ConvertTo
(new CustomTypeDescriptorContext(), null, value, typeof(string)));
269
Assert.Throws<NotSupportedException>(() => converter.
ConvertTo
(new CustomTypeDescriptorContext(), null, type, destinationType));