https://bugzilla.novell.com/show_bug.cgi?id=354757
Summary: IsGenericMethodDefinition returns false for open generic
method
Product: Mono: Runtime
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: generics
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
using System;
using System.Reflection;
using System.Reflection.Emit;
public class Entry
{
public static void Main()
{
AssemblyName name = new AssemblyName("I");
AssemblyBuilder asmbuild =
System.Threading.Thread.GetDomain().DefineDynamicAssembly(name,
AssemblyBuilderAccess.RunAndSave);
ModuleBuilder mod = asmbuild.DefineDynamicModule("I.exe");
TypeBuilder G = mod.DefineType("G", TypeAttributes.Public);
Type T = G.DefineGenericParameters("T")[0];
Type GObj = G.MakeGenericType(new Type[] { typeof(object) });
MethodBuilder M = G.DefineMethod("M", MethodAttributes.Public);
Type S = M.DefineGenericParameters("S")[0];
MethodInfo GObjM = TypeBuilder.GetMethod(GObj, M);
Console.WriteLine (GObjM.IsGenericMethodDefinition);
}
}
Expected result: True
Actual result: False
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs