Skip to content

Instantly share code, notes, and snippets.

@jonpryor
Created April 28, 2013 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonpryor/565354a6a3446307e676 to your computer and use it in GitHub Desktop.
Save jonpryor/565354a6a3446307e676 to your computer and use it in GitHub Desktop.
diff --git a/mcs/class/System/System.Diagnostics/Switch.cs b/mcs/class/System/System.Diagnostics/Switch.cs
index 14540ba..216cde7 100644
--- a/mcs/class/System/System.Diagnostics/Switch.cs
+++ b/mcs/class/System/System.Diagnostics/Switch.cs
@@ -141,6 +141,7 @@ namespace System.Diagnostics
private void GetConfigFileSetting ()
{
+#if !MOBILE
IDictionary d = (IDictionary) DiagnosticsConfiguration.Settings ["switches"];
// Load up the specified switch
@@ -154,6 +155,7 @@ namespace System.Diagnostics
return;
}
}
+#endif // !MOBILE
if (defaultSwitchValue != null) {
value = defaultSwitchValue;
diff --git a/mcs/class/System/System.Diagnostics/TraceImpl.cs b/mcs/class/System/System.Diagnostics/TraceImpl.cs
index 83ed384..55a8362 100644
--- a/mcs/class/System/System.Diagnostics/TraceImpl.cs
+++ b/mcs/class/System/System.Diagnostics/TraceImpl.cs
@@ -163,7 +163,6 @@ namespace System.Diagnostics {
}
static bool use_global_lock;
-#if !MOBILE
static CorrelationManager correlation_manager = new CorrelationManager ();
public static CorrelationManager CorrelationManager {
@@ -172,7 +171,6 @@ namespace System.Diagnostics {
return correlation_manager;
}
}
-#endif
[MonoLimitation ("the property exists but it does nothing.")]
public static bool UseGlobalLock {
diff --git a/mcs/class/System/mobile_System.dll.sources b/mcs/class/System/mobile_System.dll.sources
index 0ed7e10..fe4f6be 100644
--- a/mcs/class/System/mobile_System.dll.sources
+++ b/mcs/class/System/mobile_System.dll.sources
@@ -196,6 +196,8 @@ System.ComponentModel/UInt64Converter.cs
System.ComponentModel/WeakObjectWrapper.cs
System.ComponentModel/WeakObjectWrapperComparer.cs
System.ComponentModel/Win32Exception.cs
+System.Diagnostics/BooleanSwitch.cs
+System.Diagnostics/CorrelationManager.cs
System.Diagnostics/DataReceivedEventArgs.cs
System.Diagnostics/DataReceivedEventHandler.cs
System.Diagnostics/Debug.cs
@@ -210,11 +212,20 @@ System.Diagnostics/ProcessStartInfo.cs
System.Diagnostics/ProcessThread.cs
System.Diagnostics/ProcessThreadCollection.cs
System.Diagnostics/ProcessWindowStyle.cs
+System.Diagnostics/SourceLevels.cs
+System.Diagnostics/SourceSwitch.cs
System.Diagnostics/Stopwatch.cs
+System.Diagnostics/Switch.cs
+System.Diagnostics/SwitchAttribute.cs
+System.Diagnostics/SwitchLevelAttribute.cs
+System.Diagnostics/Trace.cs
+System.Diagnostics/TraceEventType.cs
System.Diagnostics/TraceImpl.cs
+System.Diagnostics/TraceLevel.cs
System.Diagnostics/TraceListener.cs
System.Diagnostics/TraceListenerCollection.cs
System.Diagnostics/TraceOptions.cs
+System.Diagnostics/TraceSwitch.cs
System.Diagnostics/ThreadPriorityLevel.cs
System.Diagnostics/ThreadState.cs
System.Diagnostics/ThreadWaitReason.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment