public systemLogObject(object objToLog, LogObjectType type) { this.ObjectToLog = objToLog; this.Type = type; this.time = DateTime.Now; this.elapsedTicks = stopwatch.ElapsedTicks; }
public static void Add(object obj, LogObjectType type) { allObjects.Add(new systemLogObject(obj, type)); }