public void ClearBuff(DateTime befDate) { LogableClass.ToLog("清空指定时间以后的日志列表", befDate.ToString()); if (LogBuffs == null) { LogBuffs = new Dictionary <DateTime, string>(); } Dictionary <DateTime, string> tmp = LogBuffs.Where(t => t.Key > befDate) as Dictionary <DateTime, string>; LogBuffs = tmp; }
public void ClearBuff() { LogBuffs.Clear();// }