2010-03-27 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / class / corlib / System.Reflection / TypeDelegator.cs
index f663033fbfba4cfe791f43293c9fa74fd3970fb6..32c143b75dbd80a5c6dc9c4418f66f8bb1464055 100644 (file)
@@ -34,9 +34,7 @@ using System.Runtime.InteropServices;
 
 namespace System.Reflection {
 
-#if NET_2_0
        [ComVisible (true)]
-#endif
        [Serializable]
        public class TypeDelegator : Type {
                protected Type typeImpl;
@@ -103,9 +101,7 @@ namespace System.Reflection {
                        return typeImpl.GetConstructor (bindingAttr, binder, callConvention, types, modifiers);
                }
 
-#if NET_2_0
                [ComVisible (true)]
-#endif
                public override ConstructorInfo[] GetConstructors( BindingFlags bindingAttr)
                {
                        return typeImpl.GetConstructors (bindingAttr);
@@ -156,9 +152,7 @@ namespace System.Reflection {
                        return typeImpl.GetInterface (name, ignoreCase);
                }
 
-#if NET_2_0
                [ComVisible (true)]
-#endif
                public override InterfaceMapping GetInterfaceMap( Type interfaceType)
                {
                        return typeImpl.GetInterfaceMap (interfaceType);
@@ -254,37 +248,11 @@ namespace System.Reflection {
                        return typeImpl.IsValueType;
                }
 
-#if NET_2_0 || BOOTSTRAP_NET_2_0
-               public override Type[] GetGenericArguments ()
-               {
-                       throw new NotImplementedException ();
-               }
-
-
-               public override bool ContainsGenericParameters {
-                       get {
-                               throw new NotImplementedException ();
-                       }
-               }
-
-               public override bool IsGenericParameter {
-                       get {
-                               throw new NotImplementedException ();
-                       }
-               }
-
-               public override int GenericParameterPosition {
-                       get {
-                               throw new NotImplementedException ();
-                       }
-               }
-
                public override int MetadataToken {
                        get {
                                return typeImpl.MetadataToken;
                        }
                }
-#endif
 
        }
 }