public CanConvertFrom ( ITypeDescriptorContext context, |
||
context | ITypeDescriptorContext |
/// A |
sourceType |
/// A |
|
return | bool |
public void CanConvertFrom() { RuntimeTypeConverter cnv = new RuntimeTypeConverter(); Assert.IsTrue(cnv.CanConvertFrom(typeof(string)), "Mmm... I can't convert from a string to a Type."); Assert.IsFalse(cnv.CanConvertFrom(GetType()), "Mmm... managed to convert to a Type from a Type of this test. Boing!"); }
public void CanConvertFrom () { RuntimeTypeConverter cnv = new RuntimeTypeConverter (); Assert.IsTrue (cnv.CanConvertFrom (typeof (string)), "Mmm... I can't convert from a string to a Type."); Assert.IsFalse (cnv.CanConvertFrom (GetType ()), "Mmm... managed to convert to a Type from a Type of this test. Boing!"); }