From: Zoltan Varga Date: Wed, 12 Jul 2006 14:42:27 +0000 (-0000) Subject: 2006-07-12 Zoltan Varga X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=9cce5c413e02403337525a98547b1d9dcabaff35;p=mono.git 2006-07-12 Zoltan Varga * MonoMethod.cs (ContainsGenericParameters): Implement. svn path=/trunk/mcs/; revision=62502 --- diff --git a/mcs/class/corlib/System.Reflection/ChangeLog b/mcs/class/corlib/System.Reflection/ChangeLog index ac548f2730c..a94af946257 100644 --- a/mcs/class/corlib/System.Reflection/ChangeLog +++ b/mcs/class/corlib/System.Reflection/ChangeLog @@ -1,5 +1,7 @@ 2006-07-12 Zoltan Varga + * MonoMethod.cs (ContainsGenericParameters): Implement. + * MonoMethod.cs (Invoke): Prevent invoking of open generic methods. 2006-07-09 Gert Driesen diff --git a/mcs/class/corlib/System.Reflection/MonoMethod.cs b/mcs/class/corlib/System.Reflection/MonoMethod.cs index a5ea8d26fac..b76d37c548e 100644 --- a/mcs/class/corlib/System.Reflection/MonoMethod.cs +++ b/mcs/class/corlib/System.Reflection/MonoMethod.cs @@ -301,10 +301,14 @@ namespace System.Reflection { get; } - [MonoTODO] public override bool ContainsGenericParameters { get { - return false; + if (IsGenericMethod) { + foreach (Type arg in GetGenericArguments ()) + if (arg.ContainsGenericParameters) + return true; + } + return DeclaringType.ContainsGenericParameters; } } #endif