[Mono-bugs] [Bug 52594][Wis] Changed - cant call custom MethodInfo with Sys.Ref.Emit
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 12 Dec 2004 12:46:00 -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.
http://bugzilla.ximian.com/show_bug.cgi?id=52594
--- shadow/52594 2004-12-12 12:40:31.000000000 -0500
+++ shadow/52594.tmp.31470 2004-12-12 12:46:00.000000000 -0500
@@ -109,6 +109,56 @@
System.Reflection.MethodAttributes get_Attributes()
hello, world
C:\Inetpub\ftproot>
So, this is what the .net fx looks at on the thing.
+
+------- Additional Comments From bmaurer@users.sf.net 2004-12-12 12:46 -------
+Even more helpful info, use new StackTrace () rather than
+GetCurrentMethod:
+
+
+C:\Inetpub\ftproot>t
+
+ at MyMethodInfo.get_DeclaringType()
+ at System.Reflection.Emit.ModuleBuilder.GetMethodToken(MethodInfo)
+ at System.Reflection.Emit.ILGenerator.Emit(OpCode, MethodInfo)
+ at CodeGenerator..ctor()
+ at TestClass.Main()
+
+
+ at MyMethodInfo.get_ReflectedType()
+ at System.Reflection.Emit.ModuleBuilder.GetMethodToken(MethodInfo)
+ at System.Reflection.Emit.ILGenerator.Emit(OpCode, MethodInfo)
+ at CodeGenerator..ctor()
+ at TestClass.Main()
+
+
+ at MyMethodInfo.get_ReturnType()
+ at System.Reflection.Emit.ModuleBuilder.GetMethodToken(MethodInfo)
+ at System.Reflection.Emit.ILGenerator.Emit(OpCode, MethodInfo)
+ at CodeGenerator..ctor()
+ at TestClass.Main()
+
+
+ at MyMethodInfo.get_Name()
+ at System.Reflection.Emit.ModuleBuilder.GetMethodToken(MethodInfo)
+ at System.Reflection.Emit.ILGenerator.Emit(OpCode, MethodInfo)
+ at CodeGenerator..ctor()
+ at TestClass.Main()
+
+
+ at MyMethodInfo.get_ReturnType()
+ at System.Reflection.Emit.ILGenerator.Emit(OpCode, MethodInfo)
+ at CodeGenerator..ctor()
+ at TestClass.Main()
+
+
+ at MyMethodInfo.get_Attributes()
+ at System.Reflection.Emit.ILGenerator.Emit(OpCode, MethodInfo)
+ at CodeGenerator..ctor()
+ at TestClass.Main()
+
+hello, world
+
+C:\Inetpub\ftproot>