@@ -583,7 +583,7 @@ void ShowHelp()
583583 /// Calculate compression ratio as a percentage
584584 /// Doesnt allow for expansion (ratio > 100) as the resulting strings can get huge easily
585585 /// </summary>
586- int GetCompressionRatio ( long packedSize , long unpackedSize )
586+ static int GetCompressionRatio ( long packedSize , long unpackedSize )
587587 {
588588 int result = 0 ;
589589 if ( unpackedSize > 0 && unpackedSize >= packedSize ) {
@@ -661,7 +661,7 @@ void ListZip(string fileName) {
661661 Console . WriteLine ( headerUnderline ) ;
662662 Console . WriteLine (
663663 "{0,-15} {1,10:0} {2,3}% {3,10:0} {4,10:d} {4:hh:mm:ss}" ,
664- entryCount . ToString ( ) + " entries" , totalSize , GetCompressionRatio ( fileInfo . Length , totalSize ) , fileInfo . Length , fileInfo . LastWriteTime ) ;
664+ entryCount + " entries" , totalSize , GetCompressionRatio ( fileInfo . Length , totalSize ) , fileInfo . Length , fileInfo . LastWriteTime ) ;
665665 }
666666 }
667667 }
@@ -736,7 +736,7 @@ void ListZipViaZipFile(string fileName) {
736736 Console . WriteLine ( headerUnderline ) ;
737737 Console . WriteLine (
738738 "{0,-12} {1,10:0} {2,3}% {3,10:0} {4,10:d} {4:hh:mm:ss}" ,
739- entryCount . ToString ( ) + " entries" , totalSize , GetCompressionRatio ( fileInfo . Length , totalSize ) , fileInfo . Length , fileInfo . LastWriteTime ) ;
739+ entryCount + " entries" , totalSize , GetCompressionRatio ( fileInfo . Length , totalSize ) , fileInfo . Length , fileInfo . LastWriteTime ) ;
740740 }
741741 }
742742 catch ( Exception exception ) {
@@ -1129,13 +1129,13 @@ bool DecompressFile(string fileName, string targetDir)
11291129 /// Extract archives based on user input
11301130 /// Allows simple wildcards to specify multiple archives
11311131 /// </summary>
1132- void Extract ( ArrayList fileSpecs )
1132+ void Extract ( ArrayList fileSpecifications )
11331133 {
11341134 if ( targetOutputDirectory == null || targetOutputDirectory . Length == 0 ) {
11351135 targetOutputDirectory = @".\" ;
11361136 }
11371137
1138- foreach ( string spec in fileSpecs ) {
1138+ foreach ( string spec in fileSpecifications ) {
11391139
11401140 string [ ] names ;
11411141 if ( spec . IndexOf ( '*' ) >= 0 || spec . IndexOf ( '?' ) >= 0 ) {
0 commit comments