Esempio n. 1
0
        /// <summary>
        /// Gets the total number of items in the directory.
        /// </summary>
        public static int GetTotalCount(this IArchiveDirectory self)
        {
            int totalCount = self.Count();

            foreach (var item in self)
            {
                if (item is IArchiveDirectory dir)
                {
                    totalCount += dir.GetTotalCount();
                }
            }

            return(totalCount);
        }