Author: benm
Date: 2005-06-28 16:44:00 -0400 (Tue, 28 Jun 2005)
New Revision: 46674

Modified:
   trunk/mcs/class/corlib/System/Activator.cs
   trunk/mcs/class/corlib/System/ChangeLog
Log:
2005-06-28  Elliott Draper  <[EMAIL PROTECTED]>

        * Activator.cs: This implements the generic 
Activator.CreateInstance<T>()
        function for NET_2_0. It's full signature is:
                public static T CreateInstance<T>();



Modified: trunk/mcs/class/corlib/System/Activator.cs
===================================================================
--- trunk/mcs/class/corlib/System/Activator.cs  2005-06-28 20:39:06 UTC (rev 
46673)
+++ trunk/mcs/class/corlib/System/Activator.cs  2005-06-28 20:44:00 UTC (rev 
46674)
@@ -149,6 +149,13 @@
                        return (obj != null) ? new ObjectHandle (obj) : null;
                }
 
+#if NET_2_0
+               public static T CreateInstance <T> ()
+               {
+                       return (T) CreateInstance (typeof (T));
+               }
+#endif
+
                public static object CreateInstance (Type type)
                {
                        return CreateInstance (type, false);

Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2005-06-28 20:39:06 UTC (rev 
46673)
+++ trunk/mcs/class/corlib/System/ChangeLog     2005-06-28 20:44:00 UTC (rev 
46674)
@@ -1,3 +1,9 @@
+2005-06-28  Elliott Draper  <[EMAIL PROTECTED]>
+
+       * Activator.cs: This implements the generic 
Activator.CreateInstance<T>()
+       function for NET_2_0. It's full signature is:
+               public static T CreateInstance<T>();
+
 2005-06-28  Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * Decimal.cs: Renamed internal fields for the sake of serialization

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to