2010-03-18 Carlos Alberto Cortez <calberto.cortez@gmail.com>
[mono.git] / mcs / class / corlib / System / IComparable.cs
index 7f8dcccf85872cb7138127208f34b6ddd0181c93..08cc1aa326e240da338b77eeb7118c8d50d03547 100644 (file)
@@ -3,6 +3,7 @@
 //
 // Author:
 //   Miguel de Icaza (miguel@ximian.com)
+//   Marek Safar (marek.safar@gmail.com)
 //
 // (C) Ximian, Inc.  http://www.ximian.com
 //
@@ -33,14 +34,16 @@ using System.Runtime.InteropServices;
 
 namespace System {
 
-#if NET_2_0
        [ComVisible(true)]
-#endif
        public interface IComparable {
                int CompareTo (object obj);
        }
        
-#if NET_2_0
+#if NET_4_0
+       public interface IComparable <in T> {
+               int CompareTo (T other);
+       }
+#else
        public interface IComparable <T> {
                int CompareTo (T other);
        }