protected override void Dispose(bool disposing)
 {
     ColumnNames.Clear();
     ColumnIndex.Clear();
     IndexToName.Clear();
     NameToIndex.Clear();
 }
예제 #2
0
        /// <summary>
        /// Remove reference to SqlDataReader instance and clears the column name dictionary (used by DBSqlServerCommand)
        /// </summary>
        internal void Cleanup()
        {
            SqlDataReader = null;

            ColumnIndex?.Clear();  // This method fills the internal array with zeros to help the gc
            ColumnIndex = null;
        }