ensuring that calling GetPart will call GetPartCore
authorSteven Kirbach <steven.kirbach@gmail.com>
Wed, 27 Mar 2019 00:14:11 +0000 (17:14 -0700)
committerSteven Kirbach <steven.kirbach@gmail.com>
Wed, 27 Mar 2019 00:14:11 +0000 (17:14 -0700)
commit675af5f9e12c24d33281c7c1d78a6a9e74f1f871
tree22c3270c4a5085c3a15491456a37aa375fa80908
parent809174a49824ac8486033aa06137f3dad4859760
ensuring that calling GetPart will call GetPartCore

Package is an abstract class that others can derive from. Those derived classes can override GetPartsCore and potentially not return anything. Furthermore, it is not guaranteed that GetPartsCore will have been called if the package wasn't created using the Package.Open API, which only ensures that ZipPackage's internal data structures are filled in.

Commit migrated from https://github.com/dotnet/corefx/commit/8f1d205116dd7dec996baa3276e73070c4f59ed5
src/libraries/System.IO.Packaging/src/System/IO/Packaging/Package.cs
src/libraries/System.IO.Packaging/tests/Tests.cs