2006-02-15 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Wed, 15 Feb 2006 19:51:36 +0000 (19:51 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 15 Feb 2006 19:51:36 +0000 (19:51 -0000)
* Type.cs (Type.IsGenericInstance): Removed.

svn path=/trunk/mcs/; revision=56899

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Exception.cs
mcs/class/corlib/System/Nullable.cs
mcs/class/corlib/System/Type.cs

index d86ad55228545f2a239d123e75f9b6c8f7038fe7..2b309e9d98e019ed138838445081ef0f73590b7e 100644 (file)
@@ -1,3 +1,7 @@
+2006-02-15  Martin Baulig  <martin@ximian.com>
+
+       * Type.cs (Type.IsGenericInstance): Removed.
+
 2006-02-14  Ankit Jain  <jankit@novell.com>
            Raja R Harinath  <rharinath@novell.com>
  
index 76f906d6c2ff16c1effd143a33cd7a8c4eac38bd..7bcfecbd64aa4a82be803570b92683d946fc2772 100644 (file)
@@ -315,7 +315,7 @@ namespace System
 
                        string generic = "";
 #if NET_2_0 || BOOTSTRAP_NET_2_0
-                       if (mi.HasGenericParameters) {
+                       if (mi.IsGenericMethod) {
                                Type[] gen_params = mi.GetGenericArguments ();
                                generic = "[";
                                for (int j = 0; j < gen_params.Length; j++) {
index f7d7a715d535fd5fc5494f6835b890938e070071..6f9e0cf75a04d69a29c238983428a3748b4daa27 100644 (file)
@@ -62,7 +62,7 @@ namespace System {
                {
                        if (nullableType == null)
                                throw new ArgumentNullException ("nullableType");
-                       if (nullableType.IsGenericInstance && nullableType.GetGenericTypeDefinition () == typeof (Nullable<>))
+                       if (nullableType.IsGenericType && nullableType.GetGenericTypeDefinition () == typeof (Nullable<>))
                                return nullableType.GetGenericArguments ()[0];
                        else
                                return null;
index 0d8a3d2f0f82197136114d9cc5aa2fbc069469a1..b0d4636c11bfad8402565c6838ab91d3deb2be64 100644 (file)
@@ -1117,11 +1117,6 @@ namespace System {
                        return res;
                }
 
-               public extern bool IsGenericInstance {
-                       [MethodImplAttribute(MethodImplOptions.InternalCall)]
-                       get;
-               }
-
                public virtual extern bool IsGenericType {
                        [MethodImplAttribute(MethodImplOptions.InternalCall)]
                        get;