// Remove a named log public static void RemoveLogString(string name) { // If must exist if (m_LogsTable.ContainsKey(name)) { LogString l = (LogString)m_LogsTable[name]; l.Clear(); // remove file m_LogsTable.Remove(name); // remove from table } }
// Access to named LogString instances. // public static LogString GetLogString(string name) { // If it exists, return the existing log. if (m_LogsTable.ContainsKey(name)) { return((LogString)m_LogsTable[name]); } // Create and return a new log. LogString rv = new LogString(name); m_LogsTable.Add(name, rv); // add to table return(rv); }
// Access to named LogString instances. // public static LogString GetLogString(string name) { // If it exists, return the existing log. if (m_LogsTable.ContainsKey(name)) return (LogString)m_LogsTable[name]; // Create and return a new log. LogString rv = new LogString(name); m_LogsTable.Add(name, rv); // add to table return rv; }