Skip to content

Commit 7bcc206

Browse files
committed
Minor comment corrections, and formatting
1 parent 5e2816b commit 7bcc206

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/Zip/ZipConstants.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public sealed class ZipConstants
253253
/// </summary>
254254
/// <remarks>
255255
/// 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"/>.
257257
/// </remarks>
258258
public const int VersionMadeBy = 45;
259259

@@ -469,7 +469,7 @@ public sealed class ZipConstants
469469
#endif
470470

471471
/// <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.
473473
/// Dont use unicode encodings if you want to be Zip compatible!
474474
/// Using the default code page isnt the full solution neccessarily
475475
/// there are many variable factors, codepage 850 is often a good choice for
@@ -597,17 +597,14 @@ public static byte[] ConvertToArray(string str)
597597
/// <returns>Converted array</returns>
598598
public static byte[] ConvertToArray(int flags, string str)
599599
{
600-
if (str == null)
601-
{
600+
if (str == null) {
602601
return new byte[0];
603602
}
604603

605-
if ((flags & (int)GeneralBitFlags.UnicodeText) != 0)
606-
{
604+
if ((flags & (int)GeneralBitFlags.UnicodeText) != 0) {
607605
return Encoding.UTF8.GetBytes(str);
608606
}
609-
else
610-
{
607+
else {
611608
return ConvertToArray(str);
612609
}
613610
}

0 commit comments

Comments
 (0)