[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-devel-list
Subject:    [Mono-dev] [PATCH] add MakeGenericMethod to MethodInfo
From:       Michal Moskal <michal.moskal () gmail ! com>
Date:       2005-08-30 20:26:57
Message-ID: b323bb98050830132667fa2f7d () mail ! gmail ! com
[Download RAW message or body]

Hello,

The MS Aug CTP release removes BindGenericParameters/Arguments methods
from System.Type and MethodInfo. Instead MakeGenericType and
MakeGenericMethod should be used. Mono has the first one implemneted.
The attached patch implemnets the second one.

2005-08-30  Michal Moskal  <malekith@nemerle.org>

	* MethodInfo.cs: Add MakeGenericMethod to match Aug CTP API.

-- 
   Michal Moskal,
   http://nemerle.org/~malekith/

["gen-meth.patch" (application/octet-stream)]

Index: MethodInfo.cs
===================================================================
--- MethodInfo.cs	(revision 49059)
+++ MethodInfo.cs	(working copy)
@@ -87,5 +87,12 @@
 		{
 			throw new NotImplementedException ();
 		}
+		
+#if NET_2_0
+		public virtual MethodInfo MakeGenericMethod (Type [] types)
+		{
+			return BindGenericParameters (types);
+		}
+#endif
 	}
 }


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic