Cleanup and overhaul (#21)

* Syntax cleanup

* More minor cleanup, use Linq

* Fix broken features by using correct values

* Feature flags the same

* Features are modular

* No AlphaFS, more .NET versions

* Fix appveyor

* Put back identifiers, for some reason

* String interpolation, modernization

* Better use of GetField

* XmlTextWriter to remove possible issues

* Fix header for OpenMSX
This commit is contained in:
Matt Nadareski
2020-06-10 22:37:19 -07:00
committed by GitHub
parent f01e47444c
commit 4ad77d6be6
75 changed files with 6945 additions and 7249 deletions

View File

@@ -39,7 +39,7 @@ namespace Compress.ZipFile
private bool _zip64;
public string ZipFilename => _zipFileInfo != null ? _zipFileInfo.FullName : "";
public string ZipFilename => _zipFileInfo != null ? _zipFileInfo.FullName : string.Empty;
public long TimeStamp => _zipFileInfo?.LastWriteTime ?? 0;
@@ -923,7 +923,7 @@ namespace Compress.ZipFile
switch (zS)
{
case ZipReturn.ZipGood:
ret = "";
ret = string.Empty;
break;
case ZipReturn.ZipFileCountError:
ret = "The number of file in the Zip does not mach the number of files in the Zips Centeral Directory";
@@ -990,7 +990,7 @@ namespace Compress.ZipFile
private static string GetString(byte[] byteArr)
{
string s = "";
string s = string.Empty;
foreach (byte by in byteArr)
{
s += (char)by;