void Push(string msg, EConsoleInfoType type) { while (infoStack.Count >= maxcount) { Pop(); } ConsoleInfo info = new ConsoleInfo(msg, type); infoStack.Push(info); }
public ConsoleInfo(string msg, EConsoleInfoType type) { m_type = type; m_message = msg; m_time = DateTime.Now; }