X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Reflection%2FTypeDelegator.cs;h=8beffb64cd216b1469aabef6db6e0864f5a16685;hb=c1b43669320f96e4a2a482d993b7b36bb5e59496;hp=8ccb618ac8fd4186aeed21f3a0afdce9eb8338ba;hpb=880bea0e62f7b4d97eab34fde65c5121e706ea72;p=mono.git diff --git a/mcs/class/corlib/System.Reflection/TypeDelegator.cs b/mcs/class/corlib/System.Reflection/TypeDelegator.cs index 8ccb618ac8f..8beffb64cd2 100644 --- a/mcs/class/corlib/System.Reflection/TypeDelegator.cs +++ b/mcs/class/corlib/System.Reflection/TypeDelegator.cs @@ -37,11 +37,7 @@ namespace System.Reflection { [ComVisible (true)] [Serializable] public class TypeDelegator : -#if NET_4_5 TypeInfo, IReflectableType -#else - Type -#endif { protected Type typeImpl; @@ -260,5 +256,17 @@ namespace System.Reflection { } } + public override bool IsConstructedGenericType { + get { return typeImpl.IsConstructedGenericType; } + } + + public override bool IsAssignableFrom (TypeInfo typeInfo) + { + if (typeInfo == null) + throw new ArgumentNullException ("typeInfo"); + + return IsAssignableFrom (typeInfo.AsType ()); + } + } }