diff --git a/SabreTools.Serialization/Wrappers/CFB.cs b/SabreTools.Serialization/Wrappers/CFB.cs index 23364d18..ce7c4135 100644 --- a/SabreTools.Serialization/Wrappers/CFB.cs +++ b/SabreTools.Serialization/Wrappers/CFB.cs @@ -117,7 +117,7 @@ namespace SabreTools.Serialization.Wrappers var nextSector = this.Model.FATSectorNumbers[(uint)lastSector!.Value]; // If we have an end of chain or free sector - if (nextSector == SabreTools.Models.CFB.SectorNumber.ENDOFCHAIN || nextSector == SabreTools.Models.CFB.SectorNumber.FREESECT) + if (nextSector == Models.CFB.SectorNumber.ENDOFCHAIN || nextSector == Models.CFB.SectorNumber.FREESECT) break; // Add the next sector to the list and replace the last sector @@ -204,7 +204,7 @@ namespace SabreTools.Serialization.Wrappers var nextSector = this.Model.MiniFATSectorNumbers[(uint)lastSector!.Value]; // If we have an end of chain or free sector - if (nextSector == SabreTools.Models.CFB.SectorNumber.ENDOFCHAIN || nextSector == SabreTools.Models.CFB.SectorNumber.FREESECT) + if (nextSector == Models.CFB.SectorNumber.ENDOFCHAIN || nextSector == Models.CFB.SectorNumber.FREESECT) break; // Add the next sector to the list and replace the last sector diff --git a/SabreTools.Serialization/Wrappers/PortableExecutable.cs b/SabreTools.Serialization/Wrappers/PortableExecutable.cs index 400c9567..e5b45ffb 100644 --- a/SabreTools.Serialization/Wrappers/PortableExecutable.cs +++ b/SabreTools.Serialization/Wrappers/PortableExecutable.cs @@ -878,7 +878,7 @@ namespace SabreTools.Serialization.Wrappers { // Ensure that we have the debug data cached if (DebugData == null) - return Enumerable.Empty(); + return []; var nb10Found = DebugData.Select(r => r.Value) .Select(r => r as SabreTools.Models.PortableExecutable.NB10ProgramDatabase) @@ -904,7 +904,7 @@ namespace SabreTools.Serialization.Wrappers { // Ensure that we have the resource data cached if (DebugData == null) - return Enumerable.Empty(); + return []; return DebugData.Select(r => r.Value) .Select(b => b as byte[]) @@ -967,7 +967,7 @@ namespace SabreTools.Serialization.Wrappers continue; // If we have CodeView debug data, try to parse it - if (entry.DebugType == SabreTools.Models.PortableExecutable.DebugType.IMAGE_DEBUG_TYPE_CODEVIEW) + if (entry.DebugType == Models.PortableExecutable.DebugType.IMAGE_DEBUG_TYPE_CODEVIEW) { // Read the signature int offset = 0; @@ -1018,7 +1018,7 @@ namespace SabreTools.Serialization.Wrappers { // Ensure that we have the resource data cached if (ResourceData == null) - return Enumerable.Empty(); + return []; return ResourceData.Select(r => r.Value) .Select(r => r as SabreTools.Models.PortableExecutable.DialogBoxResource) @@ -1039,7 +1039,7 @@ namespace SabreTools.Serialization.Wrappers { // Ensure that we have the resource data cached if (ResourceData == null) - return Enumerable.Empty(); + return []; return ResourceData.Select(r => r.Value) .Select(r => r as SabreTools.Models.PortableExecutable.DialogBoxResource) @@ -1072,7 +1072,7 @@ namespace SabreTools.Serialization.Wrappers { // Ensure that we have the resource data cached if (ResourceData == null) - return Enumerable.Empty?>(); + return []; return ResourceData.Select(r => r.Value) .Select(r => r as Dictionary) @@ -1090,7 +1090,7 @@ namespace SabreTools.Serialization.Wrappers { // Ensure that we have the resource data cached if (ResourceData == null) - return Enumerable.Empty(); + return []; return ResourceData.Where(kvp => kvp.Key.Contains(typeName)) .Select(kvp => kvp.Value as byte[]) @@ -1106,7 +1106,7 @@ namespace SabreTools.Serialization.Wrappers { // Ensure that we have the resource data cached if (ResourceData == null) - return Enumerable.Empty(); + return []; return ResourceData.Select(r => r.Value) .Select(r => r as byte[])