Просмотр исходного кода

Tue Mar 29 11:47:19 CEST 2005 Paolo Molaro <[email protected]>

	* Delegate.cs: allow IronPython 0.7 to compile.


svn path=/trunk/mcs/; revision=42327
Paolo Molaro 21 лет назад
Родитель
Сommit
49ecb1be89
2 измененных файлов с 11 добавлено и 5 удалено
  1. 5 0
      mcs/class/corlib/System/ChangeLog
  2. 6 5
      mcs/class/corlib/System/Delegate.cs

+ 5 - 0
mcs/class/corlib/System/ChangeLog

@@ -1,3 +1,8 @@
+
+Tue Mar 29 11:47:19 CEST 2005 Paolo Molaro <[email protected]>
+
+	* Delegate.cs: allow IronPython 0.7 to compile.
+
 2005-03-24  Miguel de Icaza  <[email protected]>
 
 	* Delegate.cs: Add CreateDelegate with a target option, currently

+ 6 - 5
mcs/class/corlib/System/Delegate.cs

@@ -126,11 +126,12 @@ namespace System
 			return CreateDelegate_internal (type, null, method);
 		}
 
-		//
-		// This method is internal because this exact signature does 
-		// not exist on the framework.
-		//
-		internal static Delegate CreateDelegate (Type type, object target, MethodInfo method)
+#if NET_2_0
+		public
+#else
+		internal
+#endif
+		static Delegate CreateDelegate (Type type, object target, MethodInfo method)
 		{
 			if (type == null)
 				throw new ArgumentNullException ("type");