CanConvertTo() публичный Метод

public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
Результат bool
Пример #1
0
		public void CanConvertTo ()
		{
			NullableConverter converter = new NullableConverter (typeof(MyType?));
			Assert.IsTrue (converter.CanConvertTo (null, typeof(MyType)), "#1");
			Assert.IsFalse (converter.CanConvertTo (null, typeof(object)), "#2");
		}