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>2007-05-18 15:46:47 +0400
committerMarek Safar <marek.safar@gmail.com>2007-05-18 15:46:47 +0400
commit600771b439963da806d340288ade25184ab949ce (patch)
treef70743598801f7a9b1039c815616f8bfdcf26e53 /mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs
parenta5a541e5501eaae6d41be44461d3cdaba84e7736 (diff)
2007-05-18 Marek Safar <marek.safar@gmail.com>
* flowanalysis.cs, statement.cs: Put back improved error handling. svn path=/trunk/mcs/; revision=77631
Diffstat (limited to 'mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs')
-rw-r--r--mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs b/mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs
index 6ccf711c54f..505381cf175 100644
--- a/mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs
+++ b/mcs/class/System/System.Diagnostics/DiagnosticsConfigurationHandler.cs
@@ -437,6 +437,7 @@ namespace System.Diagnostics
private void AddTraceListener (IDictionary d, string name, string type, string initializeData, TraceListenerCollection listeners)
{
+#if NET_2_0
if (type == null) {
// indicated by name.
TraceListener shared = GetSharedListeners (d) [name];
@@ -445,7 +446,7 @@ namespace System.Diagnostics
listeners.Add (shared);
return;
}
-
+#endif
Type t = Type.GetType (type);
if (t == null)
throw new ConfigurationException (string.Format ("Invalid Type Specified: {0}", type));