예제 #1
0
        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());
        }
예제 #2
0
        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());
        }