[Mono-bugs] [Bug 341261] Strange error when executing VB6 -> VB.NET migrated code ( mscorlib.dll contains native code ??)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 13 17:01:46 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=341261#c1
Robert Jordan <robertj at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |robertj at gmx.net
--- Comment #1 from Robert Jordan <robertj at gmx.net> 2007-11-13 15:01:46 MST ---
The test case returns "True" on MS.NET and crashes on Mono (both profiles).
It seems that the runtime-generated "Get" method cannot be called via
reflection.
using System;
using System.Reflection;
class T
{
static void Main ()
{
string[] s = new string [] {"hello", "world"};
Console.WriteLine (s [0] == (string) s.GetType ().InvokeMember
("Get", BindingFlags.Instance | BindingFlags.Public |
BindingFlags.InvokeMethod, null, s, new object [] {0}));
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list