/// <summary> /// Get singleton static instance. /// </summary> /// <returns></returns> public static ProgramScreenCache GetInstance() { if (m_instance == null) { m_instance = new ProgramScreenCache(); } return(m_instance); }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> /// <filterpriority>2</filterpriority> public void Dispose() { this.ProgramScreenList.Clear(); m_instance = null; }