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:
authorZoltan Varga <vargaz@gmail.com>2008-05-02 23:53:10 +0400
committerZoltan Varga <vargaz@gmail.com>2008-05-02 23:53:10 +0400
commit59e4f754301850d79ffea718a0f7f7eb73b094e9 (patch)
tree90b68a1b20a726e16567d9cf78f5f06cd0ff5f2f /mcs/class/System/System.Diagnostics/TraceImpl.cs
parent54c6b5b56c7140e0206ed75c1c3f40254702e6c3 (diff)
2008-05-02 Zoltan Varga <vargaz@gmail.com>
* TraceImpl.cs: Update the IndentLevel property of this class when Indent () or Unindent () are called. Fixes #385666. svn path=/trunk/mcs/; revision=102370
Diffstat (limited to 'mcs/class/System/System.Diagnostics/TraceImpl.cs')
-rw-r--r--mcs/class/System/System.Diagnostics/TraceImpl.cs12
1 files changed, 2 insertions, 10 deletions
diff --git a/mcs/class/System/System.Diagnostics/TraceImpl.cs b/mcs/class/System/System.Diagnostics/TraceImpl.cs
index f5d2db18340..977788b6294 100644
--- a/mcs/class/System/System.Diagnostics/TraceImpl.cs
+++ b/mcs/class/System/System.Diagnostics/TraceImpl.cs
@@ -262,20 +262,12 @@ namespace System.Diagnostics {
public static void Indent ()
{
- lock (ListenersSyncRoot) {
- foreach (TraceListener listener in Listeners) {
- listener.IndentLevel++;
- }
- }
+ IndentLevel ++;
}
public static void Unindent ()
{
- lock (ListenersSyncRoot) {
- foreach (TraceListener listener in Listeners) {
- listener.IndentLevel--;
- }
- }
+ IndentLevel --;
}
public static void Write (object value)