protected override void Dispose(bool disposing) { ColumnNames.Clear(); ColumnIndex.Clear(); IndexToName.Clear(); NameToIndex.Clear(); }
/// <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; }