comparison Implab/Diagnostics/TraceEvent.cs @ 219:cc1baf7c8bd9 v2

fixed trace
author cin
date Thu, 18 May 2017 16:53:14 +0300
parents ea485487a424
children
comparison
equal deleted inserted replaced
218:babe55c34931 219:cc1baf7c8bd9
39 public override string ToString() { 39 public override string ToString() {
40 return Message; 40 return Message;
41 } 41 }
42 42
43 public static TraceEvent Create(LogicalOperation operation, TraceEventType type, string format, params object[] args) { 43 public static TraceEvent Create(LogicalOperation operation, TraceEventType type, string format, params object[] args) {
44 return new TraceEvent(operation, type, format == null ? String.Empty : String.Format(format, args)); 44 return new TraceEvent(operation, type, format == null ? String.Empty : args == null || args.Length == 0 ? format : String.Format(format, args));
45 } 45 }
46 } 46 }
47 } 47 }