diff --git a/reflect/Reader/GenericTypeParameter.cs b/reflect/Reader/GenericTypeParameter.cs index 8dee612b..5bb9489f 100644 --- a/reflect/Reader/GenericTypeParameter.cs +++ b/reflect/Reader/GenericTypeParameter.cs @@ -1,5 +1,5 @@ /* - Copyright (C) 2009 Jeroen Frijters + Copyright (C) 2009-2012 Jeroen Frijters This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages @@ -87,6 +87,21 @@ namespace IKVM.Reflection.Reader { get { return true; } } + + public sealed override bool __ContainsMissingType + { + get + { + foreach (Type type in GetGenericParameterConstraints()) + { + if (type.__ContainsMissingType) + { + return true; + } + } + return false; + } + } } sealed class UnboundGenericMethodParameter : TypeParameterType