[bcl] Remove NET_4_5 defines from class libs.
[mono.git] / mcs / class / corlib / System.Reflection / TypeDelegator.cs
index 8ccb618ac8fd4186aeed21f3a0afdce9eb8338ba..8beffb64cd216b1469aabef6db6e0864f5a16685 100644 (file)
@@ -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 ());
+               }
+
        }
 }