2005-06-28 Elliott Draper <el@eldiablo.co.uk>
[mono.git] / mcs / class / corlib / System / Activator.cs
index 4e13c9a9912740cfcd9f6414fd7949d0e8a3eb1f..63aaab2e225221cb8b6f14faaf1ed6a853aafc4a 100644 (file)
@@ -149,6 +149,13 @@ namespace System
                        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);