File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ public sealed class ZipConstants
253
253
/// </summary>
254
254
/// <remarks>
255
255
/// This is also the Zip version for the library when comparing against the version required to extract
256
- /// for an entry. See <see cref="ZipInputStream.CanDecompressEntry "/>.
256
+ /// for an entry. See <see cref="ZipEntry.CanDecompress "/>.
257
257
/// </remarks>
258
258
public const int VersionMadeBy = 45 ;
259
259
@@ -469,7 +469,7 @@ public sealed class ZipConstants
469
469
#endif
470
470
471
471
/// <summary>
472
- /// Default encoding used for string conversion. 0 gives the default system Ansi code page.
472
+ /// Default encoding used for string conversion. 0 gives the default system OEM code page.
473
473
/// Dont use unicode encodings if you want to be Zip compatible!
474
474
/// Using the default code page isnt the full solution neccessarily
475
475
/// there are many variable factors, codepage 850 is often a good choice for
@@ -597,17 +597,14 @@ public static byte[] ConvertToArray(string str)
597
597
/// <returns>Converted array</returns>
598
598
public static byte [ ] ConvertToArray ( int flags , string str )
599
599
{
600
- if ( str == null )
601
- {
600
+ if ( str == null ) {
602
601
return new byte [ 0 ] ;
603
602
}
604
603
605
- if ( ( flags & ( int ) GeneralBitFlags . UnicodeText ) != 0 )
606
- {
604
+ if ( ( flags & ( int ) GeneralBitFlags . UnicodeText ) != 0 ) {
607
605
return Encoding . UTF8 . GetBytes ( str ) ;
608
606
}
609
- else
610
- {
607
+ else {
611
608
return ConvertToArray ( str ) ;
612
609
}
613
610
}
You can’t perform that action at this time.
0 commit comments