[PR #351] [MERGED] Implement Entry.ToString() #982

Open
opened 2026-01-29 22:18:28 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/351
Author: @qmfrederik
Created: 2/16/2018
Status: Merged
Merged: 2/16/2018
Merged by: @adamhathcock

Base: masterHead: entry-tostring


📝 Commits (1)

  • 05c8fac Implement entry.ToString(), let it return entry.Key

📊 Changes

1 file changed (+6 additions, -0 deletions)

View changed files

📝 src/SharpCompress/Common/Entry.cs (+6 -0)

📄 Description

When inspecting a TarArchive under the debugger, I found that all entries are listed as {SharpCompress.Archives.Tar.TarArchiveEntry}.

This PR implements Entry.ToString() by returning Entry.Key, so that each entry now shows up with its actual file name.

Could be useful for logging/monitoring scenarios as well.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/adamhathcock/sharpcompress/pull/351 **Author:** [@qmfrederik](https://github.com/qmfrederik) **Created:** 2/16/2018 **Status:** ✅ Merged **Merged:** 2/16/2018 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `entry-tostring` --- ### 📝 Commits (1) - [`05c8fac`](https://github.com/adamhathcock/sharpcompress/commit/05c8fac0eb09dad74091608b4bfa9085bb0fab9a) Implement entry.ToString(), let it return entry.Key ### 📊 Changes **1 file changed** (+6 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/SharpCompress/Common/Entry.cs` (+6 -0) </details> ### 📄 Description When inspecting a `TarArchive` under the debugger, I found that all entries are listed as `{SharpCompress.Archives.Tar.TarArchiveEntry}`. This PR implements `Entry.ToString()` by returning `Entry.Key`, so that each entry now shows up with its actual file name. Could be useful for logging/monitoring scenarios as well. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 22:18:28 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#982