Author: rolf
Date: 2007-07-12 12:25:18 -0400 (Thu, 12 Jul 2007)
New Revision: 81881
Modified:
trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
trunk/mcs/class/System.Design/System.ComponentModel.Design/CollectionEditor.cs
Log:
* CollectionEditor.cs: Implement CreateInstance for 1.1 profile (patch
by Andreas Nahr).
Modified: trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
===================================================================
--- trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
2007-07-12 16:13:29 UTC (rev 81880)
+++ trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
2007-07-12 16:25:18 UTC (rev 81881)
@@ -1,3 +1,8 @@
+2007-07-12 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * CollectionEditor.cs: Implement CreateInstance for 1.1 profile (patch
+ by Andreas Nahr).
+
2007-07-10 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* ArrayEditor.cs, MultilineStringEditor.cs, CollectionEditor.cs,
Modified:
trunk/mcs/class/System.Design/System.ComponentModel.Design/CollectionEditor.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/CollectionEditor.cs
2007-07-12 16:13:29 UTC (rev 81880)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/CollectionEditor.cs
2007-07-12 16:25:18 UTC (rev 81881)
@@ -563,13 +563,12 @@
return info.PropertyType;
}
- [MonoLimitation ("Only implemented for the 2.0 profile")]
protected virtual object CreateInstance (Type itemType)
{
#if NET_2_0
return TypeDescriptor.CreateInstance (provider,
itemType, null, null);
#else
- throw new NotImplementedException ();
+ return Activator.CreateInstance (itemType);
#endif
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches