From a62f4df0b1044f4cd8ed69a5627541d91faa61e7 Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Fri, 16 Feb 2018 14:43:23 +0100 Subject: [PATCH] Implement entry.ToString(), let it return entry.Key (#351) --- src/SharpCompress/Common/Entry.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SharpCompress/Common/Entry.cs b/src/SharpCompress/Common/Entry.cs index 5f07af2f..409a8a2a 100644 --- a/src/SharpCompress/Common/Entry.cs +++ b/src/SharpCompress/Common/Entry.cs @@ -65,6 +65,12 @@ namespace SharpCompress.Common /// public abstract bool IsSplit { get; } + /// + public override string ToString() + { + return this.Key; + } + internal abstract IEnumerable Parts { get; } internal bool IsSolid { get; set; }