[corlib] Add more internal apis
authorMarek Safar <marek.safar@gmail.com>
Fri, 20 Feb 2015 14:09:14 +0000 (15:09 +0100)
committerMarek Safar <marek.safar@gmail.com>
Fri, 20 Feb 2015 14:09:14 +0000 (15:09 +0100)
mcs/class/corlib/ReferenceSources/AppDomain.cs
mcs/class/corlib/ReferenceSources/BCLDebug.cs

index 3a8ceb9ca3ee8a7ff850137d694423bcbbf9f854..a2962277268d29f626127c4d5653d4148b8234cf 100644 (file)
@@ -1,4 +1,3 @@
-
 using System.Reflection;
 using System.Security;
 using System.Runtime.Versioning;
@@ -11,5 +10,15 @@ namespace System {
                {
                        return ".NETFramework,Version=v4.5";
                }
+
+               internal static bool IsAppXModel ()
+               {
+                       return false;
+               }
+
+               internal static bool IsAppXDesignMode ()
+               {
+                       return false;
+               }
        }
 }
index 5896ae8d674dc0e5bfc8f5ff8f58d06a0645b459..06cead9120747bc60aba536c396f181b60bf2b6e 100644 (file)
@@ -2,6 +2,14 @@ using System.Diagnostics;
 
 namespace System
 {
+    internal enum LogLevel {
+        Trace  = 0,
+        Status = 20,
+        Warning= 40,
+        Error  = 50,
+        Panic  = 100,
+    }
+
        static class BCLDebug
        {
                [Conditional("_DEBUG")]
@@ -19,9 +27,19 @@ namespace System
                {
                }
 
+               [Conditional("_DEBUG")]
+               static public void Log (string switchName, string message)
+               {
+               }
+
+               [Conditional("_DEBUG")]
+               public static void Log (string switchName, LogLevel level, params object[] messages)
+               {
+               }
+
                [Conditional("_DEBUG")]
                internal static void Perf (bool expr, string msg)
                {
                }
        }
-}
\ No newline at end of file
+}