2010-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
authorRolf Bjarne Kvinge <RKvinge@novell.com>
Tue, 16 Mar 2010 12:14:40 +0000 (12:14 -0000)
committerRolf Bjarne Kvinge <RKvinge@novell.com>
Tue, 16 Mar 2010 12:14:40 +0000 (12:14 -0000)
* Enum.cs: Added a few 4.0 api to Moonlight.

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

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Enum.cs

index a32d49d6b4fc6c12ff604c0123af90396cc90f9a..59661c6e039bab991fcb6f64259d5e3f4937ec78 100644 (file)
@@ -1,3 +1,7 @@
+2010-03-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
+
+       * Enum.cs: Added a few 4.0 api to Moonlight.
+
 2010-03-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
 
        * AppDomain.cs: Added IsCompatibilitySwitchSet for .NET 4.0 and Moonlight.
index 8c050dce7afb4147c0b6b0889e22dd92db65e0a5..49a4fd795a8333da2b22ef76891c94608399996a 100644 (file)
@@ -615,7 +615,7 @@ namespace System
                        return true;
                }
 
-#if BOOTSTRAP_NET_4_0 || NET_4_0
+#if BOOTSTRAP_NET_4_0 || NET_4_0 || MOONLIGHT
                public static bool TryParse<TEnum> (string value, out TEnum result) where TEnum : struct
                {
                        return TryParse (value, false, out result);
@@ -1005,7 +1005,7 @@ namespace System
                        }
                        return retVal;
                }
-#if NET_4_0
+#if NET_4_0 || MOONLIGHT
                public bool HasFlag (Enum flag)
                {
                        ulong mvalue = Convert.ToUInt64 (get_value (), null);