{
Assert.IsTrue (converter.CanConvertTo (typeof (string)), "#1");
Assert.IsFalse (converter.CanConvertTo (typeof (object)), "#2");
+ Assert.IsTrue (converter.CanConvertTo (typeof (int)), "#3");
}
[Test]
return base.GetFormat (formatType);
}
}
+
+#if NET_2_0
+// adding this override in 1.x shows different result in .NET (it is ignored).
+// Some compatibility kids might want to fix this issue.
+ public override NumberFormatInfo NumberFormat {
+ get {
+ NumberFormatInfo nfi = (NumberFormatInfo) base.NumberFormat.Clone ();
+ nfi.NegativeSign = "myNegativeSign";
+ return nfi;
+ }
+ set { throw new NotSupportedException (); }
+ }
+#endif
}
}
}