mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-08 13:34:57 +00:00
Change IArchive.Entries from IEnumerable<IArchiveEntry> to ICollection<IArchiveEntry> #341
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AlexeiScherbakov on GitHub (Jan 2, 2019).
When using IArchive interface, I cannot get total count of entries. But all implementations are actually ICollection (AbstractArchive<TEntry, TVolume>.Entries is a Collection)
@adamhathcock commented on GitHub (Jan 2, 2019):
Created pull request. Will finish next week.
@adamhathcock commented on GitHub (Jan 3, 2019):
Not sure I can do this because I'm still supporting .NET 3.5. The reason is because of generic covariance which didn't exist until .NET 4.0.
@AlexeiScherbakov commented on GitHub (Jan 3, 2019):
I see. May be better introduce property int EntriesCount{get;} in IArchive.
And property bool EntriesCountAvaliable{get;} - if situation when we cannot
get count is exist
чт, 3 Янв 2019, 17:34 Adam Hathcock notifications@github.com: