3 writes to _partList
System.IO.Packaging (3)
System\IO\Packaging\Package.cs (3)
36_partList = new SortedList<PackUriHelper.ValidatedPartUri, PackagePart>(); // initial default is zero 780_partList = null!; 1214_partList = new SortedList<PackUriHelper.ValidatedPartUri, PackagePart>(partDictionary.Count);
22 references to _partList
System.IO.Packaging (22)
System\IO\Packaging\Package.cs (22)
227if (_partList.ContainsKey(validatedPartUri)) 240_partList[validatedPartUri] = addedPart; 291return _partList.ContainsKey(validatePartUri); 317if (_partList.TryGetValue(validatedPartUri, out PackagePart? value)) 323_partList[validatedPartUri].IsDeleted = true; 324_partList[validatedPartUri].Close(); 339_partList.Remove(validatedPartUri); 463_partCollection = new PackagePartCollection(_partList); 771_partList?.Clear(); 982_partList.Add(partUri, part!); 985int index = _partList.IndexOfKey(partUri); 995precedingPartName = _partList.Keys[index - 1].NormalizedPartUriString; 998if (index < _partList.Count - 1) 1000followingPartName = _partList.Keys[index + 1].NormalizedPartUriString; 1013_partList.Remove(partUri); 1061if (_partList.Count > 0) 1064PackUriHelper.ValidatedPartUri[] partKeys = new PackUriHelper.ValidatedPartUri[_partList.Keys.Count]; 1066foreach (PackUriHelper.ValidatedPartUri uri in _partList.Keys) 1082if (_partList.TryGetValue(partKeys[i], out PackagePart? p)) 1108if (_partList.TryGetValue(owningPartUri, out PackagePart? sourcePart)) 1150if (_partList.TryGetValue(validatePartUri, out PackagePart? value)) 1222_partList.Add(keyValue.Key, keyValue.Value);