comparison Implab/Diagnostics/TraceEvent.cs @ 42:3ba6778ed336

fixed ArgumentNullException in StartLogicalOperation
author cin
date Wed, 16 Apr 2014 00:33:09 +0400
parents fe33f4e02ad5
children 7c2369f580b8
comparison
equal deleted inserted replaced
41:2fc0fbe7d58b 42:3ba6778ed336
23 public override string ToString() { 23 public override string ToString() {
24 return String.Format("{0}: {1}", EventType, Message); 24 return String.Format("{0}: {1}", EventType, Message);
25 } 25 }
26 26
27 public static TraceEvent Create(TraceEventType type, string format, params object[] args) { 27 public static TraceEvent Create(TraceEventType type, string format, params object[] args) {
28 return new TraceEvent(type, String.Format(format, args)); 28 return new TraceEvent(type, String.Format(format ?? String.Empty, args));
29 } 29 }
30 } 30 }
31 } 31 }