Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2015-02-20 17:09:14 +0300
committerMarek Safar <marek.safar@gmail.com>2015-02-20 17:09:14 +0300
commit01db1cc9ad3d7ee4b3a07d5b2d7dec8500957b8d (patch)
tree7df6546fabf9a2d63d37ccc0ab211cd8f7002055
parented2510cc14115feedf48311c5deaa495567f9c06 (diff)
[corlib] Add more internal apis
-rw-r--r--mcs/class/corlib/ReferenceSources/AppDomain.cs11
-rw-r--r--mcs/class/corlib/ReferenceSources/BCLDebug.cs20
2 files changed, 29 insertions, 2 deletions
diff --git a/mcs/class/corlib/ReferenceSources/AppDomain.cs b/mcs/class/corlib/ReferenceSources/AppDomain.cs
index 3a8ceb9ca3e..a2962277268 100644
--- a/mcs/class/corlib/ReferenceSources/AppDomain.cs
+++ b/mcs/class/corlib/ReferenceSources/AppDomain.cs
@@ -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;
+ }
}
}
diff --git a/mcs/class/corlib/ReferenceSources/BCLDebug.cs b/mcs/class/corlib/ReferenceSources/BCLDebug.cs
index 5896ae8d674..06cead91207 100644
--- a/mcs/class/corlib/ReferenceSources/BCLDebug.cs
+++ b/mcs/class/corlib/ReferenceSources/BCLDebug.cs
@@ -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")]
@@ -20,8 +28,18 @@ 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
+}