Author: alp
Date: 2007-04-03 04:59:23 -0400 (Tue, 03 Apr 2007)
New Revision: 75332

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/Convert.cs
   trunk/mcs/class/corlib/System/Math.cs
Log:
2007-04-03  Alp Toker  <[EMAIL PROTECTED]>

        * Convert.cs:
        * Math.cs: Should be static classes in 2.0.



Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2007-04-03 08:56:07 UTC (rev 
75331)
+++ trunk/mcs/class/corlib/System/ChangeLog     2007-04-03 08:59:23 UTC (rev 
75332)
@@ -1,5 +1,10 @@
 2007-04-03  Alp Toker  <[EMAIL PROTECTED]>
 
+       * Convert.cs:
+       * Math.cs: Should be static classes in 2.0.
+
+2007-04-03  Alp Toker  <[EMAIL PROTECTED]>
+
        * Delegate.cs: DynamicInvoke(object[]) is params in 2.0.
 
 2007-04-03  Alp Toker  <[EMAIL PROTECTED]>

Modified: trunk/mcs/class/corlib/System/Convert.cs
===================================================================
--- trunk/mcs/class/corlib/System/Convert.cs    2007-04-03 08:56:07 UTC (rev 
75331)
+++ trunk/mcs/class/corlib/System/Convert.cs    2007-04-03 08:59:23 UTC (rev 
75332)
@@ -99,16 +99,19 @@
 namespace System {
   
 //     [CLSCompliant(false)]
+#if NET_2_0
+       public static class Convert {
+#else
        public sealed class Convert {
+               private Convert ()
+               {
+               }
+#endif
 
                // Fields
                public static readonly object DBNull = System.DBNull.Value;
                static ToBase64Transform toBase64Transform = new 
ToBase64Transform();
        
-               private Convert ()
-               {
-               }
-
                [MethodImplAttribute (MethodImplOptions.InternalCall)]
                extern static byte [] InternalFromBase64String (string str, 
bool allowWhitespaceOnly);
 

Modified: trunk/mcs/class/corlib/System/Math.cs
===================================================================
--- trunk/mcs/class/corlib/System/Math.cs       2007-04-03 08:56:07 UTC (rev 
75331)
+++ trunk/mcs/class/corlib/System/Math.cs       2007-04-03 08:59:23 UTC (rev 
75332)
@@ -39,15 +39,20 @@
 
 namespace System
 {
+#if NET_2_0
+       public static class Math
+       {
+#else
        public sealed class Math
        {
-               public const double E = 2.7182818284590452354;
-               public const double PI = 3.14159265358979323846;
-
                private Math ()
                {
                }
+#endif
 
+               public const double E = 2.7182818284590452354;
+               public const double PI = 3.14159265358979323846;
+
                public static decimal Abs (decimal value)
                {
                        return (value < 0)? -value: value;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to