C# ZipDotNet返回从目录到zip的文件路径

C# ZipDotNet返回从目录到zip的文件路径,c#,wpf,C#,Wpf,我已经设法从存档中获取文件,但我得到的值如下 ZipEntry://path/to/file 我怎么才能得到这样的文件路径 path/to/file 这是到目前为止我的代码 internal static Array GetFiles(string haystack, string needle = "*") { var resources = ZipFile.Read(ResourcePath); resources.Password = ResourcePassword; r

我已经设法从存档中获取文件,但我得到的值如下

ZipEntry://path/to/file
我怎么才能得到这样的文件路径

path/to/file
这是到目前为止我的代码

internal static Array GetFiles(string haystack, string needle = "*")
{
  var resources = ZipFile.Read(ResourcePath);
  resources.Password = ResourcePassword;
  return resources.SelectEntries(needle, haystack).ToArray();
}

请注意,这是没有错误检查的基本代码

只需为每个条目替换ZipEntry前缀即可

path.Replace("ZipEntry://", "");

这么简单,我现在觉得有点被轻视了。