/// <summary> /// 日志信息写文件 /// </summary> private void output() { while (!isStop) { Monitor.Enter(logLock); try { if (newDebugs.Count == 0) { Monitor.Wait(logLock); } list <debug> oldDebugs = currentDebugs; currentDebugs = newDebugs; newDebugs = oldDebugs; } finally { Monitor.Exit(logLock); } output(string.Join(@" - - - - - - - - - - ", currentDebugs.GetArray(error => error.ToString()))); currentDebugs.Empty(); } newDebugs = null; }
internal void Set(Type type, list <staticValue> values) { TypeName = type.fullName(); Values = values.GetArray(); }