class DisplayName_test
{
-#if NET_2_0
[DisplayName ("An explicit displayname")]
-#endif
public bool Explicit {
get { return false; }
}
get { return null; }
}
- [TypeConverter("System.ComponentModel.CharConverter, " + Consts.AssemblySystem)]
+#if MOBILE
+ [TypeConverter("System.ComponentModel.CharConverter, System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+#else
+ [TypeConverter("System.ComponentModel.CharConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
+#endif
public virtual Version WithConverterNamedAssmQuald {
get { return null; }
}
PropertyDescriptor p = TypeDescriptor.GetProperties (typeof (CanResetNoSetter_test))["Prop"];
CanResetNoSetter_test test = new CanResetNoSetter_test ();
-#if NET_2_0
Assert.IsFalse (p.CanResetValue (test), "1");
-#else
- Assert.IsTrue (p.CanResetValue (test), "1");
-#endif
Assert.AreEqual (5, test.Prop, "2");
p.ResetValue (test);
Assert.AreEqual (10, test.Prop, "3");
PropertyDescriptor p1 = TypeDescriptor.GetProperties (typeof (DisplayName_test)) ["Explicit"];
PropertyDescriptor p2 = TypeDescriptor.GetProperties (typeof (DisplayName_test)) ["Implicit"];
-#if NET_2_0
Assert.AreEqual ("An explicit displayname", p1.DisplayName, "#1");
-#else
- Assert.AreEqual ("Explicit", p1.DisplayName, "#1");
-#endif
Assert.AreEqual ("Implicit", p2.DisplayName, "#2");
}
}
}
-#if NET_2_0
[Test]
public void GetInvocationTarget_Instance_Null ()
{
Assert.AreEqual (handlerC, handler.GetInvocationList () [1], "#I4");
Assert.IsNull (pd.GetValueChangedHandler (compB), "#I5");
}
-#endif
[Test]
public void RemoveValueChanged ()
base.OnValueChanged (component, e);
}
-#if NET_2_0
public new object GetInvocationTarget (Type type, object instance)
{
return base.GetInvocationTarget (type, instance);
{
return base.GetValueChangedHandler (component);
}
-#endif
}
[AttributeUsage (AttributeTargets.Field | AttributeTargets.Property)]