private static string[] GetFiles(UnzipHandle handle, Func <UnzipHandle, string> getCurrentFileName) { GoToFirstFile(handle); var files = new List <string> (); string name; while ((name = getCurrentFileName(handle)) != null) { files.Add(name); if (!NativeUnzip.GoToNextFile(handle)) { break; } } return(files.ToArray()); }
public static string[] GetFiles(UnzipHandle handle) { List <string> files = new List <string> (); GoToFirstFile(handle); string name; while ((name = GetCurrentFileName(handle)) != null) { files.Add(name); if (!NativeUnzip.GoToNextFile(handle)) { break; } } return(files.ToArray()); }