diff Implab/Diagnostics/TraceEvent.cs @ 93:dc4942d09e74 v2

improved tracing added the application components container MTComponentContainer.AppContainer
author cin
date Thu, 23 Oct 2014 01:13:57 +0400
parents edf0bc558596
children 6c49d02a9a05
line wrap: on
line diff
--- a/Implab/Diagnostics/TraceEvent.cs	Wed Oct 22 18:37:56 2014 +0400
+++ b/Implab/Diagnostics/TraceEvent.cs	Thu Oct 23 01:13:57 2014 +0400
@@ -1,7 +1,4 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
 
 namespace Implab.Diagnostics {
     public class TraceEvent {
@@ -21,10 +18,7 @@
         }
 
         public override string ToString() {
-            if (EventType == TraceEventType.Information)
-                return Message;
-            else
-                return String.Format("{0}: {1}", EventType, Message);
+            return EventType == TraceEventType.Information ? Message : String.Format("{0}: {1}", EventType, Message);
         }
 
         public static TraceEvent Create(TraceEventType type, string format, params object[] args) {