[Mono-bugs] [Bug 52594][Wis] New - cant call custom MethodInfo with Sys.Ref.Emit

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 4 Jan 2004 20:48:06 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.


--- shadow/52594	2004-01-04 20:48:06.000000000 -0500
+++ shadow/52594.tmp.31469	2004-01-04 20:48:06.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 52594
+Product: Mono/Runtime
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: cant call custom MethodInfo with Sys.Ref.Emit
+Description of Problem:
+On the MS runtime, you are able to create your own custom MethodInfo
+classes, and call them in dynamicly generated code using
+ilgen.Emit (OpCodes.Call, myCustomMethodInfo);
+However, Mono does not support this. We give
+** ERROR **: requested token for MyMethodInfo
+I am attaching a sample that works on MS, just mcs it (if you have a V2
+classlib set you need to pass -2), and mono it.
+It should print
+`hello, world'