##// END OF EJS Templates
fixed ArgumentNullException in StartLogicalOperation
cin -
r42:3ba6778ed336 default
parent child
Show More
@@ -1,31 +1,31
1 1 using System;
2 2 using System.Collections.Generic;
3 3 using System.Linq;
4 4 using System.Text;
5 5
6 6 namespace Implab.Diagnostics {
7 7 public class TraceEvent {
8 8 public string Message {
9 9 get;
10 10 private set;
11 11 }
12 12
13 13 public TraceEventType EventType {
14 14 get;
15 15 private set;
16 16 }
17 17
18 18 public TraceEvent(TraceEventType type, string message) {
19 19 EventType = type;
20 20 Message = message;
21 21 }
22 22
23 23 public override string ToString() {
24 24 return String.Format("{0}: {1}", EventType, Message);
25 25 }
26 26
27 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 }
General Comments 0
You need to be logged in to leave comments. Login now