[Mono-bugs] [Bug 62978][Nor] Changed - Sorry, I reported 4 bugs at once - please split the report

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 9 Dec 2004 14:01:01 -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 shurik_u@freemail.ru.

http://bugzilla.ximian.com/show_bug.cgi?id=62978

--- shadow/62978	2004-08-24 08:08:14.000000000 -0400
+++ shadow/62978.tmp.23652	2004-12-09 14:01:01.000000000 -0500
@@ -131,6 +131,52 @@
 ------- Additional Comments From info@x-tensive.com  2004-08-19 05:12 -------
 Please pay attention to this report - there are 4 bugs, not just one.
 
 ------- Additional Comments From lluis@ximian.com  2004-08-24 08:08 -------
 Please, split the report yourself and give proper summaries, if you
 want the bugs to get fixed.
+
+------- Additional Comments From shurik_u@freemail.ru  2004-12-09 14:01 -------
+//I have decided to split bug report above:
+//The first bug is bug with dynamic member invocation:
+using System;
+using System.Reflection;
+
+namespace MonoTest
+{
+  /// <summary>
+  /// Summary description for Class1.
+  /// </summary>
+  class InvokeMemberTest
+  {
+    public class A
+    {
+      private IComparable value;
+      
+      public A(IComparable value)
+      {
+        this.value = value;
+      }
+    };
+
+    /// <summary>
+    /// The main entry point for the application.
+    /// </summary>
+    [STAThread]
+    static void Main(string[] args)
+    {
+      Type typeA = typeof(A);
+      object[] invokeargs = {1};
+      A objA = (A)typeA.InvokeMember( "", 
+        BindingFlags.DeclaredOnly |
+        BindingFlags.Public |
+        BindingFlags.NonPublic |
+        BindingFlags.Instance |
+        BindingFlags.CreateInstance,
+        null, null, invokeargs 
+        );
+      Console.WriteLine("Success:"+objA);
+      Console.ReadLine();
+    }
+  }
+}
+