示例#1
0
        /// <summary>
        /// 销毁数据表
        /// </summary>
        /// <param name="dataTableName">要销毁的数据表名称</param>
        /// <returns>是否销毁数据表成功</returns>
        private bool DestroyDataTable(string dataTableName)
        {
            IDataTable dataTable = null;

            lock (m_DataTables)
            {
                if (m_DataTables.TryGetValue(dataTableName, out dataTable))
                {
                    dataTable.Clear();
                    return(m_DataTables.Remove(dataTableName));
                }
            }
            return(false);
        }