public _ValuesCollection(LockedFullDeclarations <TMItemIdentifier, TMItem> source) : base(source) { this.owner = source; this.dataCopy = new List <MasterDictionaryEntry <TMItem>?>(source.sourceData.Count); for (int i = 0; i < this.owner.sourceData.Count; i++) { this.dataCopy.Add(null); } }
internal void Dispose() { for (int i = 0; i < this.dataCopy.Count; i++) { if (this.dataCopy[i] != null) { this.dataCopy[i].Value.Entry.Dispose(); this.dataCopy[i] = null; } } this.dataCopy = null; this.owner = null; }