From ab6fcd73e0d0bbed71282368183092ff0d5eb6b7 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 27 Dec 2022 17:12:55 -0800 Subject: [PATCH] Seal as many of the models as possible --- BurnOutSharp.Models/BFPK/Archive.cs | 2 +- BurnOutSharp.Models/BFPK/FileEntry.cs | 2 +- BurnOutSharp.Models/BFPK/Header.cs | 2 +- .../LinearExecutable/DebugInformation.cs | 2 +- .../LinearExecutable/EntryTableEntry.cs | 2 +- .../LinearExecutable/Executable.cs | 2 +- .../LinearExecutable/FixupPageTableEntry.cs | 2 +- .../LinearExecutable/FixupRecordTableEntry.cs | 2 +- .../ImportModuleNameTableEntry.cs | 2 +- .../ImportProcedureNameTableEntry.cs | 2 +- .../LinearExecutable/InformationBlock.cs | 2 +- .../ModuleFormatDirectivesTableEntry.cs | 2 +- .../NonResidentNameTableEntry.cs | 2 +- .../LinearExecutable/ObjectPageTableEntry.cs | 2 +- .../LinearExecutable/ObjectTableEntry.cs | 2 +- .../PerPageChecksumTableEntry.cs | 2 +- .../ResidentNameTableEntry.cs | 2 +- .../LinearExecutable/ResourceTableEntry.cs | 2 +- .../VerifyRecordDirectiveTableEntry.cs | 2 +- BurnOutSharp.Models/MSDOS/Executable.cs | 2 +- BurnOutSharp.Models/MSDOS/ExecutableHeader.cs | 2 +- BurnOutSharp.Models/MSDOS/RelocationEntry.cs | 2 +- .../MicrosoftCabinet/CFDATA.cs | 2 +- .../MicrosoftCabinet/CFFILE.cs | 2 +- .../MicrosoftCabinet/CFFOLDER.cs | 2 +- .../MicrosoftCabinet/CFHEADER.cs | 2 +- .../MicrosoftCabinet/Cabinet.cs | 2 +- BurnOutSharp.Models/MoPaQ/Archive.cs | 2 +- BurnOutSharp.Models/MoPaQ/ArchiveHeader.cs | 2 +- BurnOutSharp.Models/MoPaQ/BetTable.cs | 2 +- BurnOutSharp.Models/MoPaQ/BlockEntry.cs | 2 +- BurnOutSharp.Models/MoPaQ/HashEntry.cs | 2 +- BurnOutSharp.Models/MoPaQ/HetTable.cs | 2 +- BurnOutSharp.Models/MoPaQ/PatchHeader.cs | 2 +- BurnOutSharp.Models/MoPaQ/PatchInfo.cs | 2 +- BurnOutSharp.Models/MoPaQ/UserData.cs | 2 +- .../NewExecutable/EntryTableBundle.cs | 2 +- .../NewExecutable/Executable.cs | 2 +- .../NewExecutable/ExecutableHeader.cs | 2 +- .../ImportNameRelocationRecord.cs | 2 +- .../ImportOrdinalRelocationRecord.cs | 2 +- .../NewExecutable/ImportedNameTableEntry.cs | 2 +- .../InternalRefRelocationRecord.cs | 2 +- .../ModuleReferenceTableEntry.cs | 2 +- .../NonResidentNameTableEntry.cs | 2 +- .../NewExecutable/OSFixupRelocationRecord.cs | 2 +- .../NewExecutable/PerSegmentData.cs | 2 +- .../NewExecutable/RelocationRecord.cs | 2 +- .../NewExecutable/ResidentNameTableEntry.cs | 2 +- .../NewExecutable/ResourceTable.cs | 2 +- .../ResourceTypeAndNameString.cs | 2 +- .../ResourceTypeInformationEntry.cs | 2 +- .../ResourceTypeResourceEntry.cs | 2 +- .../NewExecutable/SegmentTableEntry.cs | 2 +- .../AcceleratorTableEntry.cs | 2 +- .../PortableExecutable/AssemblyManifest.cs | 60 +++++++++---------- .../AttributeCertificateTableEntry.cs | 2 +- .../PortableExecutable/BaseRelocationBlock.cs | 2 +- .../BaseRelocationTypeOffsetFieldEntry.cs | 2 +- .../PortableExecutable/COFFFileHeader.cs | 2 +- .../PortableExecutable/COFFLineNumber.cs | 2 +- .../PortableExecutable/COFFRelocation.cs | 2 +- .../PortableExecutable/COFFStringTable.cs | 2 +- .../COFFSymbolTableEntry.cs | 2 +- .../CursorAndIconResource.cs | 2 +- .../PortableExecutable/DataDirectory.cs | 2 +- .../PortableExecutable/DebugDirectoryEntry.cs | 2 +- .../PortableExecutable/DebugTable.cs | 2 +- .../DelayLoadDirectoryTable.cs | 2 +- .../PortableExecutable/DialogBoxResource.cs | 2 +- .../PortableExecutable/DialogItemTemplate.cs | 2 +- .../DialogItemTemplateExtended.cs | 2 +- .../PortableExecutable/DialogTemplate.cs | 2 +- .../DialogTemplateExtended.cs | 2 +- .../PortableExecutable/DirEntry.cs | 2 +- .../PortableExecutable/Executable.cs | 2 +- .../ExportAddressTableEntry.cs | 2 +- .../ExportDirectoryTable.cs | 2 +- .../ExportNamePointerTable.cs | 2 +- .../PortableExecutable/ExportNameTable.cs | 2 +- .../PortableExecutable/ExportOrdinalTable.cs | 2 +- .../PortableExecutable/ExportTable.cs | 2 +- .../PortableExecutable/FixedFileInfo.cs | 2 +- .../PortableExecutable/FontDirEntry.cs | 2 +- .../PortableExecutable/FontGroupHeader.cs | 2 +- .../PortableExecutable/HintNameTableEntry.cs | 2 +- .../ImportAddressTableEntry.cs | 2 +- .../ImportDirectoryTableEntry.cs | 2 +- .../ImportLookupTableEntry.cs | 2 +- .../PortableExecutable/ImportTable.cs | 2 +- .../LoadConfigurationDirectory.cs | 2 +- .../PortableExecutable/MenuHeader.cs | 2 +- .../PortableExecutable/MenuHeaderExtended.cs | 2 +- .../PortableExecutable/MenuItem.cs | 2 +- .../PortableExecutable/MenuItemExtended.cs | 2 +- .../PortableExecutable/MenuResource.cs | 2 +- .../MessageResourceBlock.cs | 2 +- .../PortableExecutable/MessageResourceData.cs | 2 +- .../MessageResourceEntry.cs | 2 +- .../PortableExecutable/NB10ProgramDatabase.cs | 2 +- .../PortableExecutable/NewHeader.cs | 2 +- .../PortableExecutable/OptionalHeader.cs | 2 +- .../PortableExecutable/RSDSProgramDatabase.cs | 2 +- .../PortableExecutable/ResourceDataEntry.cs | 2 +- .../ResourceDirectoryEntry.cs | 2 +- .../ResourceDirectoryString.cs | 2 +- .../ResourceDirectoryTable.cs | 2 +- .../PortableExecutable/ResourceHeader.cs | 2 +- .../PortableExecutable/SectionHeader.cs | 2 +- .../PortableExecutable/SecuROMAddD.cs | 2 +- .../PortableExecutable/SecuROMAddDEntry.cs | 2 +- .../PortableExecutable/StringData.cs | 2 +- .../PortableExecutable/StringFileInfo.cs | 2 +- .../PortableExecutable/StringTable.cs | 2 +- .../PortableExecutable/TLSDirectory.cs | 2 +- .../PortableExecutable/VarData.cs | 2 +- .../PortableExecutable/VarFileInfo.cs | 2 +- .../PortableExecutable/VersionInfo.cs | 2 +- BurnOutSharp.Models/SFFS/FileEntry.cs | 4 +- BurnOutSharp.Models/SFFS/FileHeader.cs | 4 +- BurnOutSharp.Models/SFFS/Header.cs | 4 +- .../SFFS/StarForceFileSystem.cs | 4 +- BurnOutSharp.Models/SGA/Directory4.cs | 2 +- BurnOutSharp.Models/SGA/Directory5.cs | 2 +- BurnOutSharp.Models/SGA/Directory6.cs | 2 +- BurnOutSharp.Models/SGA/Directory7.cs | 2 +- BurnOutSharp.Models/SGA/DirectoryHeader.cs | 2 +- BurnOutSharp.Models/SGA/File.cs | 2 +- BurnOutSharp.Models/SGA/Folder.cs | 2 +- BurnOutSharp.Models/SGA/Header.cs | 2 +- BurnOutSharp.Models/SGA/Section.cs | 2 +- BurnOutSharp.Models/XZP/File.cs | 2 +- 132 files changed, 165 insertions(+), 165 deletions(-) diff --git a/BurnOutSharp.Models/BFPK/Archive.cs b/BurnOutSharp.Models/BFPK/Archive.cs index 0186318a..7f5486ce 100644 --- a/BurnOutSharp.Models/BFPK/Archive.cs +++ b/BurnOutSharp.Models/BFPK/Archive.cs @@ -4,7 +4,7 @@ /// BFPK custom archive format /// /// - public class Archive + public sealed class Archive { /// /// Header diff --git a/BurnOutSharp.Models/BFPK/FileEntry.cs b/BurnOutSharp.Models/BFPK/FileEntry.cs index dce3a797..321d0699 100644 --- a/BurnOutSharp.Models/BFPK/FileEntry.cs +++ b/BurnOutSharp.Models/BFPK/FileEntry.cs @@ -4,7 +4,7 @@ /// File entry /// /// - public class FileEntry + public sealed class FileEntry { /// /// Name size diff --git a/BurnOutSharp.Models/BFPK/Header.cs b/BurnOutSharp.Models/BFPK/Header.cs index 17fd5ae4..6ec70538 100644 --- a/BurnOutSharp.Models/BFPK/Header.cs +++ b/BurnOutSharp.Models/BFPK/Header.cs @@ -7,7 +7,7 @@ namespace BurnOutSharp.Models.BFPK /// /// [StructLayout(LayoutKind.Sequential)] - public class Header + public sealed class Header { /// /// "BFPK" diff --git a/BurnOutSharp.Models/LinearExecutable/DebugInformation.cs b/BurnOutSharp.Models/LinearExecutable/DebugInformation.cs index 32ce5070..b680f6bf 100644 --- a/BurnOutSharp.Models/LinearExecutable/DebugInformation.cs +++ b/BurnOutSharp.Models/LinearExecutable/DebugInformation.cs @@ -14,7 +14,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class DebugInformation + public sealed class DebugInformation { /// /// The signature consists of a string of three (3) ASCII characters: "NB0" diff --git a/BurnOutSharp.Models/LinearExecutable/EntryTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/EntryTableEntry.cs index 368622c6..af7713a6 100644 --- a/BurnOutSharp.Models/LinearExecutable/EntryTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/EntryTableEntry.cs @@ -18,7 +18,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Explicit)] - public class EntryTableEntry + public sealed class EntryTableEntry { /// /// Number of entries. diff --git a/BurnOutSharp.Models/LinearExecutable/Executable.cs b/BurnOutSharp.Models/LinearExecutable/Executable.cs index 0d641812..8f9b0a93 100644 --- a/BurnOutSharp.Models/LinearExecutable/Executable.cs +++ b/BurnOutSharp.Models/LinearExecutable/Executable.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// /// - public class Executable + public sealed class Executable { /// /// MS-DOS executable stub diff --git a/BurnOutSharp.Models/LinearExecutable/FixupPageTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/FixupPageTableEntry.cs index ca85fa93..b16fc3f1 100644 --- a/BurnOutSharp.Models/LinearExecutable/FixupPageTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/FixupPageTableEntry.cs @@ -18,7 +18,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class FixupPageTableEntry + public sealed class FixupPageTableEntry { /// /// Offset for fixup record for this page. (1 to n) diff --git a/BurnOutSharp.Models/LinearExecutable/FixupRecordTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/FixupRecordTableEntry.cs index 5c5d461e..579a3332 100644 --- a/BurnOutSharp.Models/LinearExecutable/FixupRecordTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/FixupRecordTableEntry.cs @@ -11,7 +11,7 @@ /// /// /// - public class FixupRecordTableEntry + public sealed class FixupRecordTableEntry { /// /// Source type. diff --git a/BurnOutSharp.Models/LinearExecutable/ImportModuleNameTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/ImportModuleNameTableEntry.cs index 6cc5b4e3..d590df16 100644 --- a/BurnOutSharp.Models/LinearExecutable/ImportModuleNameTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/ImportModuleNameTableEntry.cs @@ -18,7 +18,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ImportModuleNameTableEntry + public sealed class ImportModuleNameTableEntry { /// /// String Length. diff --git a/BurnOutSharp.Models/LinearExecutable/ImportProcedureNameTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/ImportProcedureNameTableEntry.cs index 3c95add4..8c51ed2d 100644 --- a/BurnOutSharp.Models/LinearExecutable/ImportProcedureNameTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/ImportProcedureNameTableEntry.cs @@ -21,7 +21,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ImportModuleProcedureNameTableEntry + public sealed class ImportModuleProcedureNameTableEntry { /// /// String Length. diff --git a/BurnOutSharp.Models/LinearExecutable/InformationBlock.cs b/BurnOutSharp.Models/LinearExecutable/InformationBlock.cs index 97266977..08eaac4d 100644 --- a/BurnOutSharp.Models/LinearExecutable/InformationBlock.cs +++ b/BurnOutSharp.Models/LinearExecutable/InformationBlock.cs @@ -13,7 +13,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class InformationBlock + public sealed class InformationBlock { /// /// Specifies the signature word diff --git a/BurnOutSharp.Models/LinearExecutable/ModuleFormatDirectivesTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/ModuleFormatDirectivesTableEntry.cs index 8d25b458..f47f9c8d 100644 --- a/BurnOutSharp.Models/LinearExecutable/ModuleFormatDirectivesTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/ModuleFormatDirectivesTableEntry.cs @@ -16,7 +16,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ModuleFormatDirectivesTableEntry + public sealed class ModuleFormatDirectivesTableEntry { /// /// Directive number. diff --git a/BurnOutSharp.Models/LinearExecutable/NonResidentNameTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/NonResidentNameTableEntry.cs index 10924d4b..bd43420e 100644 --- a/BurnOutSharp.Models/LinearExecutable/NonResidentNameTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/NonResidentNameTableEntry.cs @@ -28,7 +28,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class NonResidentNameTableEntry + public sealed class NonResidentNameTableEntry { /// /// String Length. diff --git a/BurnOutSharp.Models/LinearExecutable/ObjectPageTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/ObjectPageTableEntry.cs index 6681a173..d4750883 100644 --- a/BurnOutSharp.Models/LinearExecutable/ObjectPageTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/ObjectPageTableEntry.cs @@ -16,7 +16,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ObjectPageTableEntry + public sealed class ObjectPageTableEntry { /// /// Offset to the page data in the EXE file. diff --git a/BurnOutSharp.Models/LinearExecutable/ObjectTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/ObjectTableEntry.cs index d67b1869..2fae1502 100644 --- a/BurnOutSharp.Models/LinearExecutable/ObjectTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/ObjectTableEntry.cs @@ -15,7 +15,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ObjectTableEntry + public sealed class ObjectTableEntry { /// /// Virtual memory size. diff --git a/BurnOutSharp.Models/LinearExecutable/PerPageChecksumTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/PerPageChecksumTableEntry.cs index 17209fb4..6bbed22b 100644 --- a/BurnOutSharp.Models/LinearExecutable/PerPageChecksumTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/PerPageChecksumTableEntry.cs @@ -14,7 +14,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class PerPageChecksumTableEntry + public sealed class PerPageChecksumTableEntry { /// /// Cryptographic checksum. diff --git a/BurnOutSharp.Models/LinearExecutable/ResidentNameTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/ResidentNameTableEntry.cs index e97f807e..5f3b69ae 100644 --- a/BurnOutSharp.Models/LinearExecutable/ResidentNameTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/ResidentNameTableEntry.cs @@ -28,7 +28,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ResidentNameTableEntry + public sealed class ResidentNameTableEntry { /// /// String Length. diff --git a/BurnOutSharp.Models/LinearExecutable/ResourceTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/ResourceTableEntry.cs index 2d11eb2d..d341d29d 100644 --- a/BurnOutSharp.Models/LinearExecutable/ResourceTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/ResourceTableEntry.cs @@ -16,7 +16,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ResourceTableEntry + public sealed class ResourceTableEntry { /// /// Resource type ID. diff --git a/BurnOutSharp.Models/LinearExecutable/VerifyRecordDirectiveTableEntry.cs b/BurnOutSharp.Models/LinearExecutable/VerifyRecordDirectiveTableEntry.cs index f399a93c..dcc1bbbb 100644 --- a/BurnOutSharp.Models/LinearExecutable/VerifyRecordDirectiveTableEntry.cs +++ b/BurnOutSharp.Models/LinearExecutable/VerifyRecordDirectiveTableEntry.cs @@ -12,7 +12,7 @@ namespace BurnOutSharp.Models.LinearExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class VerifyRecordDirectiveTableEntry + public sealed class VerifyRecordDirectiveTableEntry { /// /// Number of module dependencies. diff --git a/BurnOutSharp.Models/MSDOS/Executable.cs b/BurnOutSharp.Models/MSDOS/Executable.cs index 74bfa1db..bbe8078b 100644 --- a/BurnOutSharp.Models/MSDOS/Executable.cs +++ b/BurnOutSharp.Models/MSDOS/Executable.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.MSDOS /// and PE executables, usually as stubs so that when they are ran under DOS, they display a warning. /// /// - public class Executable + public sealed class Executable { /// /// MS-DOS executable header diff --git a/BurnOutSharp.Models/MSDOS/ExecutableHeader.cs b/BurnOutSharp.Models/MSDOS/ExecutableHeader.cs index b07b2a67..73758d73 100644 --- a/BurnOutSharp.Models/MSDOS/ExecutableHeader.cs +++ b/BurnOutSharp.Models/MSDOS/ExecutableHeader.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.MSDOS /// /// [StructLayout(LayoutKind.Sequential)] - public class ExecutableHeader + public sealed class ExecutableHeader { #region Standard Fields diff --git a/BurnOutSharp.Models/MSDOS/RelocationEntry.cs b/BurnOutSharp.Models/MSDOS/RelocationEntry.cs index 75a6e2a6..144b7018 100644 --- a/BurnOutSharp.Models/MSDOS/RelocationEntry.cs +++ b/BurnOutSharp.Models/MSDOS/RelocationEntry.cs @@ -7,7 +7,7 @@ namespace BurnOutSharp.Models.MSDOS /// /// [StructLayout(LayoutKind.Sequential)] - public class RelocationEntry + public sealed class RelocationEntry { /// /// Offset of the relocation within provided segment. diff --git a/BurnOutSharp.Models/MicrosoftCabinet/CFDATA.cs b/BurnOutSharp.Models/MicrosoftCabinet/CFDATA.cs index 4e6c7a7e..f41e3745 100644 --- a/BurnOutSharp.Models/MicrosoftCabinet/CFDATA.cs +++ b/BurnOutSharp.Models/MicrosoftCabinet/CFDATA.cs @@ -10,7 +10,7 @@ namespace BurnOutSharp.Models.MicrosoftCabinet /// /// [StructLayout(LayoutKind.Sequential)] - public class CFDATA + public sealed class CFDATA { /// /// Checksum of this CFDATA structure, from the through the diff --git a/BurnOutSharp.Models/MicrosoftCabinet/CFFILE.cs b/BurnOutSharp.Models/MicrosoftCabinet/CFFILE.cs index b1ce18ca..5a07be82 100644 --- a/BurnOutSharp.Models/MicrosoftCabinet/CFFILE.cs +++ b/BurnOutSharp.Models/MicrosoftCabinet/CFFILE.cs @@ -13,7 +13,7 @@ namespace BurnOutSharp.Models.MicrosoftCabinet /// /// [StructLayout(LayoutKind.Sequential)] - public class CFFILE + public sealed class CFFILE { /// /// Specifies the uncompressed size of this file, in bytes. diff --git a/BurnOutSharp.Models/MicrosoftCabinet/CFFOLDER.cs b/BurnOutSharp.Models/MicrosoftCabinet/CFFOLDER.cs index 22f68934..6f694088 100644 --- a/BurnOutSharp.Models/MicrosoftCabinet/CFFOLDER.cs +++ b/BurnOutSharp.Models/MicrosoftCabinet/CFFOLDER.cs @@ -24,7 +24,7 @@ namespace BurnOutSharp.Models.MicrosoftCabinet /// /// [StructLayout(LayoutKind.Sequential)] - public class CFFOLDER + public sealed class CFFOLDER { /// /// Specifies the absolute file offset of the first CFDATA field block for the folder. diff --git a/BurnOutSharp.Models/MicrosoftCabinet/CFHEADER.cs b/BurnOutSharp.Models/MicrosoftCabinet/CFHEADER.cs index fd99d1ab..bc9f3163 100644 --- a/BurnOutSharp.Models/MicrosoftCabinet/CFHEADER.cs +++ b/BurnOutSharp.Models/MicrosoftCabinet/CFHEADER.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.MicrosoftCabinet /// /// [StructLayout(LayoutKind.Sequential)] - public class CFHEADER + public sealed class CFHEADER { /// /// Contains the characters "M", "S", "C", and "F" (bytes 0x4D, 0x53, 0x43, diff --git a/BurnOutSharp.Models/MicrosoftCabinet/Cabinet.cs b/BurnOutSharp.Models/MicrosoftCabinet/Cabinet.cs index b2e8e912..6844e0f8 100644 --- a/BurnOutSharp.Models/MicrosoftCabinet/Cabinet.cs +++ b/BurnOutSharp.Models/MicrosoftCabinet/Cabinet.cs @@ -7,7 +7,7 @@ /// document does not specify these internal compression formats. /// /// - public class Cabinet + public sealed class Cabinet { /// /// Cabinet header diff --git a/BurnOutSharp.Models/MoPaQ/Archive.cs b/BurnOutSharp.Models/MoPaQ/Archive.cs index 08a6bb65..5ce442bb 100644 --- a/BurnOutSharp.Models/MoPaQ/Archive.cs +++ b/BurnOutSharp.Models/MoPaQ/Archive.cs @@ -7,7 +7,7 @@ /// Mike O'Brien (Mike O'brien PaCK). /// /// - public class Archive + public sealed class Archive { // TODO: Data before archive, ignored diff --git a/BurnOutSharp.Models/MoPaQ/ArchiveHeader.cs b/BurnOutSharp.Models/MoPaQ/ArchiveHeader.cs index d97e722d..ee0645e0 100644 --- a/BurnOutSharp.Models/MoPaQ/ArchiveHeader.cs +++ b/BurnOutSharp.Models/MoPaQ/ArchiveHeader.cs @@ -7,7 +7,7 @@ namespace BurnOutSharp.Models.MoPaQ /// /// [StructLayout(LayoutKind.Sequential)] - public class ArchiveHeader + public sealed class ArchiveHeader { #region V1 Properties diff --git a/BurnOutSharp.Models/MoPaQ/BetTable.cs b/BurnOutSharp.Models/MoPaQ/BetTable.cs index 4b6d7bfb..9cb02a83 100644 --- a/BurnOutSharp.Models/MoPaQ/BetTable.cs +++ b/BurnOutSharp.Models/MoPaQ/BetTable.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.MoPaQ /// /// [StructLayout(LayoutKind.Sequential)] - public class BetTable + public sealed class BetTable { // TODO: Extract this out and make in common between HET and BET #region Common Table Headers diff --git a/BurnOutSharp.Models/MoPaQ/BlockEntry.cs b/BurnOutSharp.Models/MoPaQ/BlockEntry.cs index 38eb06d1..27e16dea 100644 --- a/BurnOutSharp.Models/MoPaQ/BlockEntry.cs +++ b/BurnOutSharp.Models/MoPaQ/BlockEntry.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.MoPaQ /// /// [StructLayout(LayoutKind.Sequential)] - public class BlockEntry + public sealed class BlockEntry { /// /// Offset of the beginning of the file data, relative to the beginning of the archive. diff --git a/BurnOutSharp.Models/MoPaQ/HashEntry.cs b/BurnOutSharp.Models/MoPaQ/HashEntry.cs index 211cd1ec..bb005697 100644 --- a/BurnOutSharp.Models/MoPaQ/HashEntry.cs +++ b/BurnOutSharp.Models/MoPaQ/HashEntry.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.Models.MoPaQ /// /// [StructLayout(LayoutKind.Sequential)] - public class HashEntry + public sealed class HashEntry { /// /// The hash of the full file name (part A) diff --git a/BurnOutSharp.Models/MoPaQ/HetTable.cs b/BurnOutSharp.Models/MoPaQ/HetTable.cs index 07c6b879..5ce99115 100644 --- a/BurnOutSharp.Models/MoPaQ/HetTable.cs +++ b/BurnOutSharp.Models/MoPaQ/HetTable.cs @@ -10,7 +10,7 @@ namespace BurnOutSharp.Models.MoPaQ /// /// [StructLayout(LayoutKind.Sequential)] - public class HetTable + public sealed class HetTable { // TODO: Extract this out and make in common between HET and BET #region Common Table Headers diff --git a/BurnOutSharp.Models/MoPaQ/PatchHeader.cs b/BurnOutSharp.Models/MoPaQ/PatchHeader.cs index 91d7b1a2..ea1a158f 100644 --- a/BurnOutSharp.Models/MoPaQ/PatchHeader.cs +++ b/BurnOutSharp.Models/MoPaQ/PatchHeader.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.MoPaQ /// /// [StructLayout(LayoutKind.Sequential)] - public class PatchHeader + public sealed class PatchHeader { #region PATCH Header diff --git a/BurnOutSharp.Models/MoPaQ/PatchInfo.cs b/BurnOutSharp.Models/MoPaQ/PatchInfo.cs index 230eccfd..f16a032d 100644 --- a/BurnOutSharp.Models/MoPaQ/PatchInfo.cs +++ b/BurnOutSharp.Models/MoPaQ/PatchInfo.cs @@ -7,7 +7,7 @@ namespace BurnOutSharp.Models.MoPaQ /// /// [StructLayout(LayoutKind.Sequential)] - public class PatchInfo + public sealed class PatchInfo { /// /// Length of patch info header, in bytes diff --git a/BurnOutSharp.Models/MoPaQ/UserData.cs b/BurnOutSharp.Models/MoPaQ/UserData.cs index e0dcc644..6fc157e4 100644 --- a/BurnOutSharp.Models/MoPaQ/UserData.cs +++ b/BurnOutSharp.Models/MoPaQ/UserData.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.MoPaQ /// /// [StructLayout(LayoutKind.Sequential)] - public class UserData + public sealed class UserData { /// /// The user data signature diff --git a/BurnOutSharp.Models/NewExecutable/EntryTableBundle.cs b/BurnOutSharp.Models/NewExecutable/EntryTableBundle.cs index 9e04f56a..e0ac5e76 100644 --- a/BurnOutSharp.Models/NewExecutable/EntryTableBundle.cs +++ b/BurnOutSharp.Models/NewExecutable/EntryTableBundle.cs @@ -19,7 +19,7 @@ /// describes the format of the entry table bundles. /// /// - public class EntryTableBundle + public sealed class EntryTableBundle { /// /// Number of entries in this bundle. All records in one bundle diff --git a/BurnOutSharp.Models/NewExecutable/Executable.cs b/BurnOutSharp.Models/NewExecutable/Executable.cs index 43d9709a..c48ebef4 100644 --- a/BurnOutSharp.Models/NewExecutable/Executable.cs +++ b/BurnOutSharp.Models/NewExecutable/Executable.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.Models.NewExecutable /// modules in the system and to support dynamic linking. /// /// - public class Executable + public sealed class Executable { /// /// MS-DOS executable stub diff --git a/BurnOutSharp.Models/NewExecutable/ExecutableHeader.cs b/BurnOutSharp.Models/NewExecutable/ExecutableHeader.cs index 898b323f..a1d13b18 100644 --- a/BurnOutSharp.Models/NewExecutable/ExecutableHeader.cs +++ b/BurnOutSharp.Models/NewExecutable/ExecutableHeader.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ExecutableHeader + public sealed class ExecutableHeader { /// /// Signature word. diff --git a/BurnOutSharp.Models/NewExecutable/ImportNameRelocationRecord.cs b/BurnOutSharp.Models/NewExecutable/ImportNameRelocationRecord.cs index 05c83eaa..61792065 100644 --- a/BurnOutSharp.Models/NewExecutable/ImportNameRelocationRecord.cs +++ b/BurnOutSharp.Models/NewExecutable/ImportNameRelocationRecord.cs @@ -4,7 +4,7 @@ namespace BurnOutSharp.Models.NewExecutable { /// [StructLayout(LayoutKind.Sequential)] - public class ImportNameRelocationRecord + public sealed class ImportNameRelocationRecord { /// /// Index into module reference table for the imported module. diff --git a/BurnOutSharp.Models/NewExecutable/ImportOrdinalRelocationRecord.cs b/BurnOutSharp.Models/NewExecutable/ImportOrdinalRelocationRecord.cs index 9d8f1930..93bac1be 100644 --- a/BurnOutSharp.Models/NewExecutable/ImportOrdinalRelocationRecord.cs +++ b/BurnOutSharp.Models/NewExecutable/ImportOrdinalRelocationRecord.cs @@ -4,7 +4,7 @@ namespace BurnOutSharp.Models.NewExecutable { /// [StructLayout(LayoutKind.Sequential)] - public class ImportOrdinalRelocationRecord + public sealed class ImportOrdinalRelocationRecord { /// /// Index into module reference table for the imported module. diff --git a/BurnOutSharp.Models/NewExecutable/ImportedNameTableEntry.cs b/BurnOutSharp.Models/NewExecutable/ImportedNameTableEntry.cs index 9000a017..a43646ff 100644 --- a/BurnOutSharp.Models/NewExecutable/ImportedNameTableEntry.cs +++ b/BurnOutSharp.Models/NewExecutable/ImportedNameTableEntry.cs @@ -12,7 +12,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ImportedNameTableEntry + public sealed class ImportedNameTableEntry { /// /// Length of the name string that follows. A zero value indicates diff --git a/BurnOutSharp.Models/NewExecutable/InternalRefRelocationRecord.cs b/BurnOutSharp.Models/NewExecutable/InternalRefRelocationRecord.cs index 180e1975..958d7225 100644 --- a/BurnOutSharp.Models/NewExecutable/InternalRefRelocationRecord.cs +++ b/BurnOutSharp.Models/NewExecutable/InternalRefRelocationRecord.cs @@ -4,7 +4,7 @@ namespace BurnOutSharp.Models.NewExecutable { /// [StructLayout(LayoutKind.Sequential)] - public class InternalRefRelocationRecord + public sealed class InternalRefRelocationRecord { /// /// Segment number for a fixed segment, or 0FFh for a diff --git a/BurnOutSharp.Models/NewExecutable/ModuleReferenceTableEntry.cs b/BurnOutSharp.Models/NewExecutable/ModuleReferenceTableEntry.cs index 98403473..4ecd733f 100644 --- a/BurnOutSharp.Models/NewExecutable/ModuleReferenceTableEntry.cs +++ b/BurnOutSharp.Models/NewExecutable/ModuleReferenceTableEntry.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ModuleReferenceTableEntry + public sealed class ModuleReferenceTableEntry { /// /// Offset within Imported Names Table to referenced module name string. diff --git a/BurnOutSharp.Models/NewExecutable/NonResidentNameTableEntry.cs b/BurnOutSharp.Models/NewExecutable/NonResidentNameTableEntry.cs index e6643828..e7ba6e1c 100644 --- a/BurnOutSharp.Models/NewExecutable/NonResidentNameTableEntry.cs +++ b/BurnOutSharp.Models/NewExecutable/NonResidentNameTableEntry.cs @@ -12,7 +12,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class NonResidentNameTableEntry + public sealed class NonResidentNameTableEntry { /// /// Length of the name string that follows. A zero value indicates diff --git a/BurnOutSharp.Models/NewExecutable/OSFixupRelocationRecord.cs b/BurnOutSharp.Models/NewExecutable/OSFixupRelocationRecord.cs index bd8c63ed..55ad7699 100644 --- a/BurnOutSharp.Models/NewExecutable/OSFixupRelocationRecord.cs +++ b/BurnOutSharp.Models/NewExecutable/OSFixupRelocationRecord.cs @@ -4,7 +4,7 @@ namespace BurnOutSharp.Models.NewExecutable { /// [StructLayout(LayoutKind.Sequential)] - public class OSFixupRelocationRecord + public sealed class OSFixupRelocationRecord { /// /// Operating system fixup type. diff --git a/BurnOutSharp.Models/NewExecutable/PerSegmentData.cs b/BurnOutSharp.Models/NewExecutable/PerSegmentData.cs index bd45517a..10fbfa9f 100644 --- a/BurnOutSharp.Models/NewExecutable/PerSegmentData.cs +++ b/BurnOutSharp.Models/NewExecutable/PerSegmentData.cs @@ -8,7 +8,7 @@ /// is defined as follows: /// /// - public class PerSegmentData + public sealed class PerSegmentData { /// /// Number of relocation records that follow. diff --git a/BurnOutSharp.Models/NewExecutable/RelocationRecord.cs b/BurnOutSharp.Models/NewExecutable/RelocationRecord.cs index 71f00b57..5bc4b219 100644 --- a/BurnOutSharp.Models/NewExecutable/RelocationRecord.cs +++ b/BurnOutSharp.Models/NewExecutable/RelocationRecord.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class RelocationRecord + public sealed class RelocationRecord { /// /// Source type. diff --git a/BurnOutSharp.Models/NewExecutable/ResidentNameTableEntry.cs b/BurnOutSharp.Models/NewExecutable/ResidentNameTableEntry.cs index 3b08a7af..9dde6831 100644 --- a/BurnOutSharp.Models/NewExecutable/ResidentNameTableEntry.cs +++ b/BurnOutSharp.Models/NewExecutable/ResidentNameTableEntry.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ResidentNameTableEntry + public sealed class ResidentNameTableEntry { /// /// Length of the name string that follows. A zero value indicates diff --git a/BurnOutSharp.Models/NewExecutable/ResourceTable.cs b/BurnOutSharp.Models/NewExecutable/ResourceTable.cs index 428400e3..d19f0563 100644 --- a/BurnOutSharp.Models/NewExecutable/ResourceTable.cs +++ b/BurnOutSharp.Models/NewExecutable/ResourceTable.cs @@ -15,7 +15,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ResourceTable + public sealed class ResourceTable { /// /// Alignment shift count for resource data. diff --git a/BurnOutSharp.Models/NewExecutable/ResourceTypeAndNameString.cs b/BurnOutSharp.Models/NewExecutable/ResourceTypeAndNameString.cs index 52f82f9e..511981e4 100644 --- a/BurnOutSharp.Models/NewExecutable/ResourceTypeAndNameString.cs +++ b/BurnOutSharp.Models/NewExecutable/ResourceTypeAndNameString.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ResourceTypeAndNameString + public sealed class ResourceTypeAndNameString { /// /// Length of the type or name string that follows. A zero value diff --git a/BurnOutSharp.Models/NewExecutable/ResourceTypeInformationEntry.cs b/BurnOutSharp.Models/NewExecutable/ResourceTypeInformationEntry.cs index 53ed3249..ff6214f8 100644 --- a/BurnOutSharp.Models/NewExecutable/ResourceTypeInformationEntry.cs +++ b/BurnOutSharp.Models/NewExecutable/ResourceTypeInformationEntry.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ResourceTypeInformationEntry + public sealed class ResourceTypeInformationEntry { /// /// Type ID. This is an integer type if the high-order bit is diff --git a/BurnOutSharp.Models/NewExecutable/ResourceTypeResourceEntry.cs b/BurnOutSharp.Models/NewExecutable/ResourceTypeResourceEntry.cs index 8103dd10..296fe7a4 100644 --- a/BurnOutSharp.Models/NewExecutable/ResourceTypeResourceEntry.cs +++ b/BurnOutSharp.Models/NewExecutable/ResourceTypeResourceEntry.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ResourceTypeResourceEntry + public sealed class ResourceTypeResourceEntry { /// /// File offset to the contents of the resource data, diff --git a/BurnOutSharp.Models/NewExecutable/SegmentTableEntry.cs b/BurnOutSharp.Models/NewExecutable/SegmentTableEntry.cs index 3b22a096..a5fc36ad 100644 --- a/BurnOutSharp.Models/NewExecutable/SegmentTableEntry.cs +++ b/BurnOutSharp.Models/NewExecutable/SegmentTableEntry.cs @@ -10,7 +10,7 @@ namespace BurnOutSharp.Models.NewExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class SegmentTableEntry + public sealed class SegmentTableEntry { /// /// Logical-sector offset (n byte) to the contents of the segment diff --git a/BurnOutSharp.Models/PortableExecutable/AcceleratorTableEntry.cs b/BurnOutSharp.Models/PortableExecutable/AcceleratorTableEntry.cs index 0563ffdf..5817e554 100644 --- a/BurnOutSharp.Models/PortableExecutable/AcceleratorTableEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/AcceleratorTableEntry.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class AcceleratorTableEntry + public sealed class AcceleratorTableEntry { /// /// Describes keyboard accelerator characteristics. diff --git a/BurnOutSharp.Models/PortableExecutable/AssemblyManifest.cs b/BurnOutSharp.Models/PortableExecutable/AssemblyManifest.cs index 76a37709..21c27396 100644 --- a/BurnOutSharp.Models/PortableExecutable/AssemblyManifest.cs +++ b/BurnOutSharp.Models/PortableExecutable/AssemblyManifest.cs @@ -4,7 +4,7 @@ namespace BurnOutSharp.Models.PortableExecutable { /// [XmlRoot(ElementName = "assembly", Namespace = "urn:schemas-microsoft-com:asm.v1")] - public class AssemblyManifest + public sealed class AssemblyManifest { [XmlAttribute("manifestVersion")] public string ManifestVersion; @@ -52,21 +52,21 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyActiveCodePage + public sealed class AssemblyActiveCodePage { [XmlText] public string Value; } /// - public class AssemblyAutoElevate + public sealed class AssemblyAutoElevate { [XmlText] public string Value; } /// - public class AssemblyBindingRedirect + public sealed class AssemblyBindingRedirect { [XmlAttribute("oldVersion")] public string OldVersion; @@ -76,7 +76,7 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyCOMClass + public sealed class AssemblyCOMClass { [XmlAttribute("clsid")] public string CLSID; @@ -98,7 +98,7 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyCOMInterfaceExternalProxyStub + public sealed class AssemblyCOMInterfaceExternalProxyStub { [XmlAttribute("iid")] public string IID; @@ -120,7 +120,7 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyCOMInterfaceProxyStub + public sealed class AssemblyCOMInterfaceProxyStub { [XmlAttribute("iid")] public string IID; @@ -142,7 +142,7 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyCommonLanguageRuntimeClass + public sealed class AssemblyCommonLanguageRuntimeClass { [XmlAttribute("name")] public string Name; @@ -170,7 +170,7 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyCommonLanguageSurrogateClass + public sealed class AssemblyCommonLanguageSurrogateClass { [XmlAttribute("clsid")] public string CLSID; @@ -183,7 +183,7 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyDependency + public sealed class AssemblyDependency { [XmlElement("dependentAssembly")] public AssemblyDependentAssembly DependentAssembly; @@ -193,7 +193,7 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyDependentAssembly + public sealed class AssemblyDependentAssembly { [XmlElement("assemblyIdentity")] public AssemblyIdentity AssemblyIdentity; @@ -203,42 +203,42 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyDescription + public sealed class AssemblyDescription { [XmlText] public string Value; } /// - public class AssemblyDisableTheming + public sealed class AssemblyDisableTheming { [XmlText] public string Value; } /// - public class AssemblyDisableWindowFiltering + public sealed class AssemblyDisableWindowFiltering { [XmlText] public string Value; } /// - public class AssemblyDPIAware + public sealed class AssemblyDPIAware { [XmlText] public string Value; } /// - public class AssemblyDPIAwareness + public sealed class AssemblyDPIAwareness { [XmlText] public string Value; } /// - public class AssemblyFile + public sealed class AssemblyFile { [XmlAttribute("name")] public string Name; @@ -270,28 +270,28 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyGDIScaling + public sealed class AssemblyGDIScaling { [XmlText] public string Value; } /// - public class AssemblyHeapType + public sealed class AssemblyHeapType { [XmlText] public string Value; } /// - public class AssemblyHighResolutionScrollingAware + public sealed class AssemblyHighResolutionScrollingAware { [XmlText] public string Value; } /// - public class AssemblyIdentity + public sealed class AssemblyIdentity { [XmlAttribute("name")] public string Name; @@ -313,45 +313,45 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyLongPathAware + public sealed class AssemblyLongPathAware { [XmlText] public string Value; } /// - public class AssemblyNoInherit + public sealed class AssemblyNoInherit { } /// - public class AssemblyNoInheritable + public sealed class AssemblyNoInheritable { } /// - public class AssemblyPrinterDriverIsolation + public sealed class AssemblyPrinterDriverIsolation { [XmlText] public string Value; } /// - public class AssemblyProgID + public sealed class AssemblyProgID { [XmlText] public string Value; } /// - public class AssemblySupportedOS + public sealed class AssemblySupportedOS { [XmlAttribute("Id")] public string Id; } /// - public class AssemblyTypeLib + public sealed class AssemblyTypeLib { [XmlElement("tlbid")] public string TLBID; @@ -370,14 +370,14 @@ namespace BurnOutSharp.Models.PortableExecutable } /// - public class AssemblyUltraHighResolutionScrollingAware + public sealed class AssemblyUltraHighResolutionScrollingAware { [XmlText] public string Value; } /// - public class AssemblyWindowClass + public sealed class AssemblyWindowClass { [XmlAttribute("versioned")] public string Versioned; diff --git a/BurnOutSharp.Models/PortableExecutable/AttributeCertificateTableEntry.cs b/BurnOutSharp.Models/PortableExecutable/AttributeCertificateTableEntry.cs index d6c384e0..a7bc05b1 100644 --- a/BurnOutSharp.Models/PortableExecutable/AttributeCertificateTableEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/AttributeCertificateTableEntry.cs @@ -37,7 +37,7 @@ /// the remainder of this section. /// /// - public class AttributeCertificateTableEntry + public sealed class AttributeCertificateTableEntry { /// /// Specifies the length of the attribute certificate entry. diff --git a/BurnOutSharp.Models/PortableExecutable/BaseRelocationBlock.cs b/BurnOutSharp.Models/PortableExecutable/BaseRelocationBlock.cs index 1f0b1099..9d7b51a8 100644 --- a/BurnOutSharp.Models/PortableExecutable/BaseRelocationBlock.cs +++ b/BurnOutSharp.Models/PortableExecutable/BaseRelocationBlock.cs @@ -18,7 +18,7 @@ /// relocations do not have to be applied. /// /// - public class BaseRelocationBlock + public sealed class BaseRelocationBlock { /// /// The image base plus the page RVA is added to each offset to create diff --git a/BurnOutSharp.Models/PortableExecutable/BaseRelocationTypeOffsetFieldEntry.cs b/BurnOutSharp.Models/PortableExecutable/BaseRelocationTypeOffsetFieldEntry.cs index 8d018c6a..ef33b9b3 100644 --- a/BurnOutSharp.Models/PortableExecutable/BaseRelocationTypeOffsetFieldEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/BaseRelocationTypeOffsetFieldEntry.cs @@ -4,7 +4,7 @@ /// Type or Offset field entry is a WORD (2 bytes). /// /// - public class BaseRelocationTypeOffsetFieldEntry + public sealed class BaseRelocationTypeOffsetFieldEntry { /// /// Stored in the high 4 bits of the WORD, a value that indicates the type diff --git a/BurnOutSharp.Models/PortableExecutable/COFFFileHeader.cs b/BurnOutSharp.Models/PortableExecutable/COFFFileHeader.cs index fe2e084b..54492697 100644 --- a/BurnOutSharp.Models/PortableExecutable/COFFFileHeader.cs +++ b/BurnOutSharp.Models/PortableExecutable/COFFFileHeader.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class COFFFileHeader + public sealed class COFFFileHeader { /// /// The number that identifies the type of target machine. diff --git a/BurnOutSharp.Models/PortableExecutable/COFFLineNumber.cs b/BurnOutSharp.Models/PortableExecutable/COFFLineNumber.cs index 4cd8e37e..18c8e58b 100644 --- a/BurnOutSharp.Models/PortableExecutable/COFFLineNumber.cs +++ b/BurnOutSharp.Models/PortableExecutable/COFFLineNumber.cs @@ -17,7 +17,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Explicit)] - public class COFFLineNumber + public sealed class COFFLineNumber { /// /// Used when Linenumber is zero: index to symbol table entry for a function. diff --git a/BurnOutSharp.Models/PortableExecutable/COFFRelocation.cs b/BurnOutSharp.Models/PortableExecutable/COFFRelocation.cs index b8d277ae..f9a9a881 100644 --- a/BurnOutSharp.Models/PortableExecutable/COFFRelocation.cs +++ b/BurnOutSharp.Models/PortableExecutable/COFFRelocation.cs @@ -18,7 +18,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class COFFRelocation + public sealed class COFFRelocation { /// /// The address of the item to which relocation is applied. This is the diff --git a/BurnOutSharp.Models/PortableExecutable/COFFStringTable.cs b/BurnOutSharp.Models/PortableExecutable/COFFStringTable.cs index e7cdecb0..fcd7be98 100644 --- a/BurnOutSharp.Models/PortableExecutable/COFFStringTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/COFFStringTable.cs @@ -6,7 +6,7 @@ /// COFF header and adding the number of symbols multiplied by the size of a symbol. /// /// - public class COFFStringTable + public sealed class COFFStringTable { /// /// At the beginning of the COFF string table are 4 bytes that contain the diff --git a/BurnOutSharp.Models/PortableExecutable/COFFSymbolTableEntry.cs b/BurnOutSharp.Models/PortableExecutable/COFFSymbolTableEntry.cs index 0ee83017..4dcde3e1 100644 --- a/BurnOutSharp.Models/PortableExecutable/COFFSymbolTableEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/COFFSymbolTableEntry.cs @@ -18,7 +18,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// defines a symbol or name. /// /// - public class COFFSymbolTableEntry + public sealed class COFFSymbolTableEntry { #region Standard COFF Symbol Table Entry diff --git a/BurnOutSharp.Models/PortableExecutable/CursorAndIconResource.cs b/BurnOutSharp.Models/PortableExecutable/CursorAndIconResource.cs index 921bbe71..69a6cdd1 100644 --- a/BurnOutSharp.Models/PortableExecutable/CursorAndIconResource.cs +++ b/BurnOutSharp.Models/PortableExecutable/CursorAndIconResource.cs @@ -28,7 +28,7 @@ /// randomly access the information. /// /// - public class CursorAndIconResource + public sealed class CursorAndIconResource { /// /// Describes keyboard accelerator characteristics. diff --git a/BurnOutSharp.Models/PortableExecutable/DataDirectory.cs b/BurnOutSharp.Models/PortableExecutable/DataDirectory.cs index 0896f394..aa6706e5 100644 --- a/BurnOutSharp.Models/PortableExecutable/DataDirectory.cs +++ b/BurnOutSharp.Models/PortableExecutable/DataDirectory.cs @@ -12,7 +12,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class DataDirectory + public sealed class DataDirectory { /// /// The first field, VirtualAddress, is actually the RVA of the table. The RVA diff --git a/BurnOutSharp.Models/PortableExecutable/DebugDirectoryEntry.cs b/BurnOutSharp.Models/PortableExecutable/DebugDirectoryEntry.cs index 167acd03..c6e79926 100644 --- a/BurnOutSharp.Models/PortableExecutable/DebugDirectoryEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/DebugDirectoryEntry.cs @@ -20,7 +20,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class DebugDirectoryEntry + public sealed class DebugDirectoryEntry { /// /// Reserved, must be zero. diff --git a/BurnOutSharp.Models/PortableExecutable/DebugTable.cs b/BurnOutSharp.Models/PortableExecutable/DebugTable.cs index 04468cee..e6a6d0c7 100644 --- a/BurnOutSharp.Models/PortableExecutable/DebugTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/DebugTable.cs @@ -15,7 +15,7 @@ /// is mapped in the address space. /// /// - public class DebugTable + public sealed class DebugTable { /// /// Image files contain an optional debug directory that indicates what form diff --git a/BurnOutSharp.Models/PortableExecutable/DelayLoadDirectoryTable.cs b/BurnOutSharp.Models/PortableExecutable/DelayLoadDirectoryTable.cs index d551b2a6..13d7e17d 100644 --- a/BurnOutSharp.Models/PortableExecutable/DelayLoadDirectoryTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/DelayLoadDirectoryTable.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class DelayLoadDirectoryTable + public sealed class DelayLoadDirectoryTable { /// /// Must be zero. diff --git a/BurnOutSharp.Models/PortableExecutable/DialogBoxResource.cs b/BurnOutSharp.Models/PortableExecutable/DialogBoxResource.cs index a1a3aa3f..64ecdd77 100644 --- a/BurnOutSharp.Models/PortableExecutable/DialogBoxResource.cs +++ b/BurnOutSharp.Models/PortableExecutable/DialogBoxResource.cs @@ -7,7 +7,7 @@ /// describe the format of extended dialog box resources. /// /// - public class DialogBoxResource + public sealed class DialogBoxResource { #region Dialog template diff --git a/BurnOutSharp.Models/PortableExecutable/DialogItemTemplate.cs b/BurnOutSharp.Models/PortableExecutable/DialogItemTemplate.cs index 5d0d0e83..1153c411 100644 --- a/BurnOutSharp.Models/PortableExecutable/DialogItemTemplate.cs +++ b/BurnOutSharp.Models/PortableExecutable/DialogItemTemplate.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class DialogItemTemplate + public sealed class DialogItemTemplate { /// /// The style of the control. This member can be a combination of window style values diff --git a/BurnOutSharp.Models/PortableExecutable/DialogItemTemplateExtended.cs b/BurnOutSharp.Models/PortableExecutable/DialogItemTemplateExtended.cs index ce8a7dad..6886d06c 100644 --- a/BurnOutSharp.Models/PortableExecutable/DialogItemTemplateExtended.cs +++ b/BurnOutSharp.Models/PortableExecutable/DialogItemTemplateExtended.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class DialogItemTemplateExtended + public sealed class DialogItemTemplateExtended { /// /// The help context identifier for the control. When the system sends a WM_HELP message, diff --git a/BurnOutSharp.Models/PortableExecutable/DialogTemplate.cs b/BurnOutSharp.Models/PortableExecutable/DialogTemplate.cs index fe4a4bc5..e17895cf 100644 --- a/BurnOutSharp.Models/PortableExecutable/DialogTemplate.cs +++ b/BurnOutSharp.Models/PortableExecutable/DialogTemplate.cs @@ -10,7 +10,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class DialogTemplate + public sealed class DialogTemplate { /// /// The style of the dialog box. This member can be a combination of window style diff --git a/BurnOutSharp.Models/PortableExecutable/DialogTemplateExtended.cs b/BurnOutSharp.Models/PortableExecutable/DialogTemplateExtended.cs index 0116b2fe..f7ac6e81 100644 --- a/BurnOutSharp.Models/PortableExecutable/DialogTemplateExtended.cs +++ b/BurnOutSharp.Models/PortableExecutable/DialogTemplateExtended.cs @@ -14,7 +14,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class DialogTemplateExtended + public sealed class DialogTemplateExtended { /// /// The version number of the extended dialog box template. This member must be diff --git a/BurnOutSharp.Models/PortableExecutable/DirEntry.cs b/BurnOutSharp.Models/PortableExecutable/DirEntry.cs index c777da3c..0ca129af 100644 --- a/BurnOutSharp.Models/PortableExecutable/DirEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/DirEntry.cs @@ -5,7 +5,7 @@ /// definition provided here is for explanation only; it is not present in any standard header file. /// /// - public class DirEntry + public sealed class DirEntry { /// /// A unique ordinal identifier for an individual font in a font resource group. diff --git a/BurnOutSharp.Models/PortableExecutable/Executable.cs b/BurnOutSharp.Models/PortableExecutable/Executable.cs index 0beed375..bcfaa41b 100644 --- a/BurnOutSharp.Models/PortableExecutable/Executable.cs +++ b/BurnOutSharp.Models/PortableExecutable/Executable.cs @@ -7,7 +7,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// is the MS-DOS 2.0 Section, and is used for MS-DOS compatibility only. /// /// - public class Executable + public sealed class Executable { /// /// MS-DOS executable stub diff --git a/BurnOutSharp.Models/PortableExecutable/ExportAddressTableEntry.cs b/BurnOutSharp.Models/PortableExecutable/ExportAddressTableEntry.cs index 9ba28ed0..10433326 100644 --- a/BurnOutSharp.Models/PortableExecutable/ExportAddressTableEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/ExportAddressTableEntry.cs @@ -16,7 +16,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Explicit)] - public class ExportAddressTableEntry + public sealed class ExportAddressTableEntry { /// /// The address of the exported symbol when loaded into memory, relative to diff --git a/BurnOutSharp.Models/PortableExecutable/ExportDirectoryTable.cs b/BurnOutSharp.Models/PortableExecutable/ExportDirectoryTable.cs index 427676bf..17340529 100644 --- a/BurnOutSharp.Models/PortableExecutable/ExportDirectoryTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/ExportDirectoryTable.cs @@ -10,7 +10,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ExportDirectoryTable + public sealed class ExportDirectoryTable { /// /// Reserved, must be 0. diff --git a/BurnOutSharp.Models/PortableExecutable/ExportNamePointerTable.cs b/BurnOutSharp.Models/PortableExecutable/ExportNamePointerTable.cs index 723cf5ad..2ec17492 100644 --- a/BurnOutSharp.Models/PortableExecutable/ExportNamePointerTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/ExportNamePointerTable.cs @@ -8,7 +8,7 @@ /// An export name is defined only if the export name pointer table contains a pointer to it. /// /// - public class ExportNamePointerTable + public sealed class ExportNamePointerTable { /// /// The pointers are 32 bits each and are relative to the image base. diff --git a/BurnOutSharp.Models/PortableExecutable/ExportNameTable.cs b/BurnOutSharp.Models/PortableExecutable/ExportNameTable.cs index accf45d9..11760436 100644 --- a/BurnOutSharp.Models/PortableExecutable/ExportNameTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/ExportNameTable.cs @@ -17,7 +17,7 @@ /// of variable length. /// /// - public class ExportNameTable + public sealed class ExportNameTable { /// /// A series of null-terminated ASCII strings of variable length. diff --git a/BurnOutSharp.Models/PortableExecutable/ExportOrdinalTable.cs b/BurnOutSharp.Models/PortableExecutable/ExportOrdinalTable.cs index a4a686a5..3ef60d43 100644 --- a/BurnOutSharp.Models/PortableExecutable/ExportOrdinalTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/ExportOrdinalTable.cs @@ -32,7 +32,7 @@ /// name = ExportNameTable[i]; /// /// - public class ExportOrdinalTable + public sealed class ExportOrdinalTable { /// /// An array of 16-bit unbiased indexes into the export address table diff --git a/BurnOutSharp.Models/PortableExecutable/ExportTable.cs b/BurnOutSharp.Models/PortableExecutable/ExportTable.cs index bdbd16ad..b5194fc1 100644 --- a/BurnOutSharp.Models/PortableExecutable/ExportTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/ExportTable.cs @@ -13,7 +13,7 @@ /// exist to support use of export names. /// /// - public class ExportTable + public sealed class ExportTable { /// /// A table with just one row (unlike the debug directory). This table indicates the diff --git a/BurnOutSharp.Models/PortableExecutable/FixedFileInfo.cs b/BurnOutSharp.Models/PortableExecutable/FixedFileInfo.cs index 7a3b0009..03fc9930 100644 --- a/BurnOutSharp.Models/PortableExecutable/FixedFileInfo.cs +++ b/BurnOutSharp.Models/PortableExecutable/FixedFileInfo.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class FixedFileInfo + public sealed class FixedFileInfo { /// /// Contains the value 0xFEEF04BD. This is used with the szKey member of the VS_VERSIONINFO diff --git a/BurnOutSharp.Models/PortableExecutable/FontDirEntry.cs b/BurnOutSharp.Models/PortableExecutable/FontDirEntry.cs index 69163c35..fa37384b 100644 --- a/BurnOutSharp.Models/PortableExecutable/FontDirEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/FontDirEntry.cs @@ -5,7 +5,7 @@ /// provided here is for explanation only; it is not present in any standard header file. /// /// - public class FontDirEntry + public sealed class FontDirEntry { /// /// A user-defined version number for the resource data that tools can use to read and write diff --git a/BurnOutSharp.Models/PortableExecutable/FontGroupHeader.cs b/BurnOutSharp.Models/PortableExecutable/FontGroupHeader.cs index 07cd5eb8..7dbda43f 100644 --- a/BurnOutSharp.Models/PortableExecutable/FontGroupHeader.cs +++ b/BurnOutSharp.Models/PortableExecutable/FontGroupHeader.cs @@ -5,7 +5,7 @@ /// definition provided here is for explanation only; it is not present in any standard header file. /// /// - public class FontGroupHeader + public sealed class FontGroupHeader { /// /// The number of individual fonts associated with this resource. diff --git a/BurnOutSharp.Models/PortableExecutable/HintNameTableEntry.cs b/BurnOutSharp.Models/PortableExecutable/HintNameTableEntry.cs index d486c433..6b144b71 100644 --- a/BurnOutSharp.Models/PortableExecutable/HintNameTableEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/HintNameTableEntry.cs @@ -4,7 +4,7 @@ /// One hint/name table suffices for the entire import section. /// /// - public class HintNameTableEntry + public sealed class HintNameTableEntry { /// /// An index into the export name pointer table. A match is attempted first diff --git a/BurnOutSharp.Models/PortableExecutable/ImportAddressTableEntry.cs b/BurnOutSharp.Models/PortableExecutable/ImportAddressTableEntry.cs index 334fa668..bcb51e91 100644 --- a/BurnOutSharp.Models/PortableExecutable/ImportAddressTableEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/ImportAddressTableEntry.cs @@ -9,7 +9,7 @@ /// called "virtual addresses." The loader typically processes the binding. /// /// - public class ImportAddressTableEntry + public sealed class ImportAddressTableEntry { /// /// If this bit is set, import by ordinal. Otherwise, import by name. Bit is diff --git a/BurnOutSharp.Models/PortableExecutable/ImportDirectoryTableEntry.cs b/BurnOutSharp.Models/PortableExecutable/ImportDirectoryTableEntry.cs index 3278e284..d7a752ec 100644 --- a/BurnOutSharp.Models/PortableExecutable/ImportDirectoryTableEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/ImportDirectoryTableEntry.cs @@ -13,7 +13,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ImportDirectoryTableEntry + public sealed class ImportDirectoryTableEntry { /// /// The RVA of the import lookup table. This table contains a name or ordinal diff --git a/BurnOutSharp.Models/PortableExecutable/ImportLookupTableEntry.cs b/BurnOutSharp.Models/PortableExecutable/ImportLookupTableEntry.cs index d7edd2a4..1fe3e792 100644 --- a/BurnOutSharp.Models/PortableExecutable/ImportLookupTableEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/ImportLookupTableEntry.cs @@ -9,7 +9,7 @@ /// (NULL) to indicate the end of the table. /// /// - public class ImportLookupTableEntry + public sealed class ImportLookupTableEntry { /// /// If this bit is set, import by ordinal. Otherwise, import by name. Bit is diff --git a/BurnOutSharp.Models/PortableExecutable/ImportTable.cs b/BurnOutSharp.Models/PortableExecutable/ImportTable.cs index 38d53b45..0c602860 100644 --- a/BurnOutSharp.Models/PortableExecutable/ImportTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/ImportTable.cs @@ -17,7 +17,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// - Hint-Name Table /// /// - public class ImportTable + public sealed class ImportTable { /// /// The import information begins with the import directory table, which describes the diff --git a/BurnOutSharp.Models/PortableExecutable/LoadConfigurationDirectory.cs b/BurnOutSharp.Models/PortableExecutable/LoadConfigurationDirectory.cs index 44f5bfb1..e1df09f0 100644 --- a/BurnOutSharp.Models/PortableExecutable/LoadConfigurationDirectory.cs +++ b/BurnOutSharp.Models/PortableExecutable/LoadConfigurationDirectory.cs @@ -9,7 +9,7 @@ /// of Windows, the size must be 64 for x86 images. /// /// - public class LoadConfigurationDirectory + public sealed class LoadConfigurationDirectory { /// /// Flags that indicate attributes of the file, currently unused. diff --git a/BurnOutSharp.Models/PortableExecutable/MenuHeader.cs b/BurnOutSharp.Models/PortableExecutable/MenuHeader.cs index 6f0b2699..1078cdef 100644 --- a/BurnOutSharp.Models/PortableExecutable/MenuHeader.cs +++ b/BurnOutSharp.Models/PortableExecutable/MenuHeader.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class MenuHeader + public sealed class MenuHeader { /// /// The version number of the menu template. This member must be equal to zero to indicate diff --git a/BurnOutSharp.Models/PortableExecutable/MenuHeaderExtended.cs b/BurnOutSharp.Models/PortableExecutable/MenuHeaderExtended.cs index 5a05e14d..22cf7cee 100644 --- a/BurnOutSharp.Models/PortableExecutable/MenuHeaderExtended.cs +++ b/BurnOutSharp.Models/PortableExecutable/MenuHeaderExtended.cs @@ -8,7 +8,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class MenuHeaderExtended + public sealed class MenuHeaderExtended { /// /// The template version number. This member must be 1 for extended menu templates. diff --git a/BurnOutSharp.Models/PortableExecutable/MenuItem.cs b/BurnOutSharp.Models/PortableExecutable/MenuItem.cs index aebbd028..406a5578 100644 --- a/BurnOutSharp.Models/PortableExecutable/MenuItem.cs +++ b/BurnOutSharp.Models/PortableExecutable/MenuItem.cs @@ -11,7 +11,7 @@ /// /// /// - public class MenuItem + public sealed class MenuItem { #region NORMALMENUITEM diff --git a/BurnOutSharp.Models/PortableExecutable/MenuItemExtended.cs b/BurnOutSharp.Models/PortableExecutable/MenuItemExtended.cs index cb560691..59bf71ae 100644 --- a/BurnOutSharp.Models/PortableExecutable/MenuItemExtended.cs +++ b/BurnOutSharp.Models/PortableExecutable/MenuItemExtended.cs @@ -5,7 +5,7 @@ /// explanation only; it is not present in any standard header file. /// /// - public class MenuItemExtended + public sealed class MenuItemExtended { /// /// Describes the menu item. diff --git a/BurnOutSharp.Models/PortableExecutable/MenuResource.cs b/BurnOutSharp.Models/PortableExecutable/MenuResource.cs index 5605d198..6519e152 100644 --- a/BurnOutSharp.Models/PortableExecutable/MenuResource.cs +++ b/BurnOutSharp.Models/PortableExecutable/MenuResource.cs @@ -7,7 +7,7 @@ /// describe the format of extended menu resources. /// /// - public class MenuResource + public sealed class MenuResource { #region Menu header diff --git a/BurnOutSharp.Models/PortableExecutable/MessageResourceBlock.cs b/BurnOutSharp.Models/PortableExecutable/MessageResourceBlock.cs index b45348fc..fa3f29e9 100644 --- a/BurnOutSharp.Models/PortableExecutable/MessageResourceBlock.cs +++ b/BurnOutSharp.Models/PortableExecutable/MessageResourceBlock.cs @@ -5,7 +5,7 @@ /// by the LowId and HighId members. /// /// - public class MessageResourceBlock + public sealed class MessageResourceBlock { /// /// The lowest message identifier contained within this structure. diff --git a/BurnOutSharp.Models/PortableExecutable/MessageResourceData.cs b/BurnOutSharp.Models/PortableExecutable/MessageResourceData.cs index 86e30bd0..ee381a41 100644 --- a/BurnOutSharp.Models/PortableExecutable/MessageResourceData.cs +++ b/BurnOutSharp.Models/PortableExecutable/MessageResourceData.cs @@ -7,7 +7,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// box in a message table resource. /// /// - public class MessageResourceData + public sealed class MessageResourceData { /// /// The number of MESSAGE_RESOURCE_BLOCK structures. diff --git a/BurnOutSharp.Models/PortableExecutable/MessageResourceEntry.cs b/BurnOutSharp.Models/PortableExecutable/MessageResourceEntry.cs index abff3f1b..cbd41bf4 100644 --- a/BurnOutSharp.Models/PortableExecutable/MessageResourceEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/MessageResourceEntry.cs @@ -4,7 +4,7 @@ /// Contains the error message or message box display text for a message table resource. /// /// - public class MessageResourceEntry + public sealed class MessageResourceEntry { /// /// The length, in bytes, of the MESSAGE_RESOURCE_ENTRY structure. diff --git a/BurnOutSharp.Models/PortableExecutable/NB10ProgramDatabase.cs b/BurnOutSharp.Models/PortableExecutable/NB10ProgramDatabase.cs index 6ca5cfcc..74df645d 100644 --- a/BurnOutSharp.Models/PortableExecutable/NB10ProgramDatabase.cs +++ b/BurnOutSharp.Models/PortableExecutable/NB10ProgramDatabase.cs @@ -7,7 +7,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class NB10ProgramDatabase + public sealed class NB10ProgramDatabase { /// /// "CodeView signature, equal to “NB10” diff --git a/BurnOutSharp.Models/PortableExecutable/NewHeader.cs b/BurnOutSharp.Models/PortableExecutable/NewHeader.cs index 6defcd80..ab5b71ea 100644 --- a/BurnOutSharp.Models/PortableExecutable/NewHeader.cs +++ b/BurnOutSharp.Models/PortableExecutable/NewHeader.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class NewHeader + public sealed class NewHeader { /// /// Reserved; must be zero. diff --git a/BurnOutSharp.Models/PortableExecutable/OptionalHeader.cs b/BurnOutSharp.Models/PortableExecutable/OptionalHeader.cs index 163015bc..4e0e9bc9 100644 --- a/BurnOutSharp.Models/PortableExecutable/OptionalHeader.cs +++ b/BurnOutSharp.Models/PortableExecutable/OptionalHeader.cs @@ -28,7 +28,7 @@ /// PE32+ format. /// /// - public class OptionalHeader + public sealed class OptionalHeader { #region Standard Fields (Image Only) diff --git a/BurnOutSharp.Models/PortableExecutable/RSDSProgramDatabase.cs b/BurnOutSharp.Models/PortableExecutable/RSDSProgramDatabase.cs index cecc596a..9bd0f7c9 100644 --- a/BurnOutSharp.Models/PortableExecutable/RSDSProgramDatabase.cs +++ b/BurnOutSharp.Models/PortableExecutable/RSDSProgramDatabase.cs @@ -9,7 +9,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class RSDSProgramDatabase + public sealed class RSDSProgramDatabase { /// /// "RSDS" signature diff --git a/BurnOutSharp.Models/PortableExecutable/ResourceDataEntry.cs b/BurnOutSharp.Models/PortableExecutable/ResourceDataEntry.cs index 984a8420..548ece73 100644 --- a/BurnOutSharp.Models/PortableExecutable/ResourceDataEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/ResourceDataEntry.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ResourceDataEntry + public sealed class ResourceDataEntry { /// /// The address of a unit of resource data in the Resource Data area. diff --git a/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryEntry.cs b/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryEntry.cs index 7ca0129c..dc59cab0 100644 --- a/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryEntry.cs @@ -17,7 +17,7 @@ /// IMAGE_DIRECTORY_ENTRY_RESOURCE DataDirectory. /// /// - public class ResourceDirectoryEntry + public sealed class ResourceDirectoryEntry { #region Offset 0x00 diff --git a/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryString.cs b/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryString.cs index cc0dc1b3..3aefd064 100644 --- a/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryString.cs +++ b/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryString.cs @@ -8,7 +8,7 @@ /// alignment of the fixed-size directory entries. /// /// - public class ResourceDirectoryString + public sealed class ResourceDirectoryString { /// /// The size of the string, not including length field itself. diff --git a/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryTable.cs b/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryTable.cs index cb5652bf..b58d9ddc 100644 --- a/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/ResourceDirectoryTable.cs @@ -16,7 +16,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class ResourceDirectoryTable + public sealed class ResourceDirectoryTable { /// /// Resource flags. This field is reserved for future use. It is currently diff --git a/BurnOutSharp.Models/PortableExecutable/ResourceHeader.cs b/BurnOutSharp.Models/PortableExecutable/ResourceHeader.cs index c87610eb..dfa5f3f4 100644 --- a/BurnOutSharp.Models/PortableExecutable/ResourceHeader.cs +++ b/BurnOutSharp.Models/PortableExecutable/ResourceHeader.cs @@ -7,7 +7,7 @@ /// explanation only; it is not present in any standard header file. /// /// - public class ResourceHeader + public sealed class ResourceHeader { /// /// The size, in bytes, of the data that follows the resource header for this diff --git a/BurnOutSharp.Models/PortableExecutable/SectionHeader.cs b/BurnOutSharp.Models/PortableExecutable/SectionHeader.cs index 2570d9c4..99fe3f77 100644 --- a/BurnOutSharp.Models/PortableExecutable/SectionHeader.cs +++ b/BurnOutSharp.Models/PortableExecutable/SectionHeader.cs @@ -21,7 +21,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// /// [StructLayout(LayoutKind.Sequential)] - public class SectionHeader + public sealed class SectionHeader { /// /// An 8-byte, null-padded UTF-8 encoded string. If the string is exactly 8 diff --git a/BurnOutSharp.Models/PortableExecutable/SecuROMAddD.cs b/BurnOutSharp.Models/PortableExecutable/SecuROMAddD.cs index 0b3f077f..734a707f 100644 --- a/BurnOutSharp.Models/PortableExecutable/SecuROMAddD.cs +++ b/BurnOutSharp.Models/PortableExecutable/SecuROMAddD.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// is protected by SecuROM. /// [StructLayout(LayoutKind.Sequential)] - public class SecuROMAddD + public sealed class SecuROMAddD { /// /// "AddD", Identifier? diff --git a/BurnOutSharp.Models/PortableExecutable/SecuROMAddDEntry.cs b/BurnOutSharp.Models/PortableExecutable/SecuROMAddDEntry.cs index 3b0ad0db..f973f1b7 100644 --- a/BurnOutSharp.Models/PortableExecutable/SecuROMAddDEntry.cs +++ b/BurnOutSharp.Models/PortableExecutable/SecuROMAddDEntry.cs @@ -11,7 +11,7 @@ namespace BurnOutSharp.Models.PortableExecutable /// is protected by SecuROM. /// [StructLayout(LayoutKind.Sequential)] - public class SecuROMAddDEntry + public sealed class SecuROMAddDEntry { /// /// Physical offset of the embedded file diff --git a/BurnOutSharp.Models/PortableExecutable/StringData.cs b/BurnOutSharp.Models/PortableExecutable/StringData.cs index 98fb5113..126a3e55 100644 --- a/BurnOutSharp.Models/PortableExecutable/StringData.cs +++ b/BurnOutSharp.Models/PortableExecutable/StringData.cs @@ -6,7 +6,7 @@ /// copyright notices, or its trademarks. /// /// - public class StringData + public sealed class StringData { /// /// The length, in bytes, of this String structure. diff --git a/BurnOutSharp.Models/PortableExecutable/StringFileInfo.cs b/BurnOutSharp.Models/PortableExecutable/StringFileInfo.cs index e78f9baf..5796d57f 100644 --- a/BurnOutSharp.Models/PortableExecutable/StringFileInfo.cs +++ b/BurnOutSharp.Models/PortableExecutable/StringFileInfo.cs @@ -5,7 +5,7 @@ /// information that can be displayed for a particular language and code page. /// /// - public class StringFileInfo + public sealed class StringFileInfo { /// /// The length, in bytes, of the entire StringFileInfo block, including all diff --git a/BurnOutSharp.Models/PortableExecutable/StringTable.cs b/BurnOutSharp.Models/PortableExecutable/StringTable.cs index 420faaa1..a48d192f 100644 --- a/BurnOutSharp.Models/PortableExecutable/StringTable.cs +++ b/BurnOutSharp.Models/PortableExecutable/StringTable.cs @@ -6,7 +6,7 @@ /// A code page is an ordered character set. /// /// - public class StringTable + public sealed class StringTable { /// /// The length, in bytes, of this StringTable structure, including all structures diff --git a/BurnOutSharp.Models/PortableExecutable/TLSDirectory.cs b/BurnOutSharp.Models/PortableExecutable/TLSDirectory.cs index 1e0883bc..8727c6ef 100644 --- a/BurnOutSharp.Models/PortableExecutable/TLSDirectory.cs +++ b/BurnOutSharp.Models/PortableExecutable/TLSDirectory.cs @@ -1,7 +1,7 @@ namespace BurnOutSharp.Models.PortableExecutable { /// - public class TLSDirectory + public sealed class TLSDirectory { #region RawDataStartVA diff --git a/BurnOutSharp.Models/PortableExecutable/VarData.cs b/BurnOutSharp.Models/PortableExecutable/VarData.cs index e375cb21..47b35a04 100644 --- a/BurnOutSharp.Models/PortableExecutable/VarData.cs +++ b/BurnOutSharp.Models/PortableExecutable/VarData.cs @@ -6,7 +6,7 @@ /// DLL supports. /// /// - public class VarData + public sealed class VarData { /// /// The length, in bytes, of the Var structure. diff --git a/BurnOutSharp.Models/PortableExecutable/VarFileInfo.cs b/BurnOutSharp.Models/PortableExecutable/VarFileInfo.cs index 0719d0c3..19d97703 100644 --- a/BurnOutSharp.Models/PortableExecutable/VarFileInfo.cs +++ b/BurnOutSharp.Models/PortableExecutable/VarFileInfo.cs @@ -5,7 +5,7 @@ /// information not dependent on a particular language and code page combination. /// /// - public class VarFileInfo + public sealed class VarFileInfo { /// /// The length, in bytes, of the entire VarFileInfo block, including all structures diff --git a/BurnOutSharp.Models/PortableExecutable/VersionInfo.cs b/BurnOutSharp.Models/PortableExecutable/VersionInfo.cs index 93fd3ebf..18f06109 100644 --- a/BurnOutSharp.Models/PortableExecutable/VersionInfo.cs +++ b/BurnOutSharp.Models/PortableExecutable/VersionInfo.cs @@ -5,7 +5,7 @@ /// structure that contains all other file-version information structures. /// /// - public class VersionInfo + public sealed class VersionInfo { /// /// The length, in bytes, of the VS_VERSIONINFO structure. This length does not diff --git a/BurnOutSharp.Models/SFFS/FileEntry.cs b/BurnOutSharp.Models/SFFS/FileEntry.cs index 3f774bc7..4c08731c 100644 --- a/BurnOutSharp.Models/SFFS/FileEntry.cs +++ b/BurnOutSharp.Models/SFFS/FileEntry.cs @@ -2,9 +2,9 @@ namespace BurnOutSharp.Models.SFFS { - /// + /// [StructLayout(LayoutKind.Sequential)] - public class FileEntry + public sealed class FileEntry { /// /// MD5 hash of filename (not encrypted,) diff --git a/BurnOutSharp.Models/SFFS/FileHeader.cs b/BurnOutSharp.Models/SFFS/FileHeader.cs index 5cbff9fa..7e627177 100644 --- a/BurnOutSharp.Models/SFFS/FileHeader.cs +++ b/BurnOutSharp.Models/SFFS/FileHeader.cs @@ -2,9 +2,9 @@ namespace BurnOutSharp.Models.SFFS { - /// + /// [StructLayout(LayoutKind.Sequential)] - public class FileHeader + public sealed class FileHeader { /// /// Start of file content (encrypted with filename) diff --git a/BurnOutSharp.Models/SFFS/Header.cs b/BurnOutSharp.Models/SFFS/Header.cs index 57354bf8..aea07420 100644 --- a/BurnOutSharp.Models/SFFS/Header.cs +++ b/BurnOutSharp.Models/SFFS/Header.cs @@ -5,9 +5,9 @@ namespace BurnOutSharp.Models.SFFS /// /// Header /// - /// + /// [StructLayout(LayoutKind.Sequential)] - public class Header + public sealed class Header { /// /// "SFFS" diff --git a/BurnOutSharp.Models/SFFS/StarForceFileSystem.cs b/BurnOutSharp.Models/SFFS/StarForceFileSystem.cs index ec491584..063b2307 100644 --- a/BurnOutSharp.Models/SFFS/StarForceFileSystem.cs +++ b/BurnOutSharp.Models/SFFS/StarForceFileSystem.cs @@ -12,8 +12,8 @@ /// containerfiles, the process uses and an application key, that is needed to /// decrypt headerinfos. Note that SFFS itself is completly vm-free. /// - /// - public class StarForceFileSystem + /// + public sealed class StarForceFileSystem { /// /// Header diff --git a/BurnOutSharp.Models/SGA/Directory4.cs b/BurnOutSharp.Models/SGA/Directory4.cs index 43e45e7b..0918e465 100644 --- a/BurnOutSharp.Models/SGA/Directory4.cs +++ b/BurnOutSharp.Models/SGA/Directory4.cs @@ -1,5 +1,5 @@ namespace BurnOutSharp.Models.SGA { /// - public class Directory4 : SpecializedDirectory { } + public sealed class Directory4 : SpecializedDirectory { } } diff --git a/BurnOutSharp.Models/SGA/Directory5.cs b/BurnOutSharp.Models/SGA/Directory5.cs index 930c58b4..071441c0 100644 --- a/BurnOutSharp.Models/SGA/Directory5.cs +++ b/BurnOutSharp.Models/SGA/Directory5.cs @@ -1,5 +1,5 @@ namespace BurnOutSharp.Models.SGA { /// - public class Directory5 : SpecializedDirectory { } + public sealed class Directory5 : SpecializedDirectory { } } diff --git a/BurnOutSharp.Models/SGA/Directory6.cs b/BurnOutSharp.Models/SGA/Directory6.cs index 3b1b7697..55dc5987 100644 --- a/BurnOutSharp.Models/SGA/Directory6.cs +++ b/BurnOutSharp.Models/SGA/Directory6.cs @@ -1,5 +1,5 @@ namespace BurnOutSharp.Models.SGA { /// - public class Directory6 : SpecializedDirectory { } + public sealed class Directory6 : SpecializedDirectory { } } diff --git a/BurnOutSharp.Models/SGA/Directory7.cs b/BurnOutSharp.Models/SGA/Directory7.cs index d7907c54..3a7450d9 100644 --- a/BurnOutSharp.Models/SGA/Directory7.cs +++ b/BurnOutSharp.Models/SGA/Directory7.cs @@ -1,5 +1,5 @@ namespace BurnOutSharp.Models.SGA { /// - public class Directory7 : SpecializedDirectory { } + public sealed class Directory7 : SpecializedDirectory { } } diff --git a/BurnOutSharp.Models/SGA/DirectoryHeader.cs b/BurnOutSharp.Models/SGA/DirectoryHeader.cs index 01106392..03932575 100644 --- a/BurnOutSharp.Models/SGA/DirectoryHeader.cs +++ b/BurnOutSharp.Models/SGA/DirectoryHeader.cs @@ -1,7 +1,7 @@ namespace BurnOutSharp.Models.SGA { /// - public class DirectoryHeader + public abstract class DirectoryHeader { public uint SectionOffset; diff --git a/BurnOutSharp.Models/SGA/File.cs b/BurnOutSharp.Models/SGA/File.cs index 013e280e..2b37abaf 100644 --- a/BurnOutSharp.Models/SGA/File.cs +++ b/BurnOutSharp.Models/SGA/File.cs @@ -4,7 +4,7 @@ namespace BurnOutSharp.Models.SGA /// SGA game archive /// /// - public class File + public sealed class File { /// ///Header data diff --git a/BurnOutSharp.Models/SGA/Folder.cs b/BurnOutSharp.Models/SGA/Folder.cs index 399b7038..ddd76596 100644 --- a/BurnOutSharp.Models/SGA/Folder.cs +++ b/BurnOutSharp.Models/SGA/Folder.cs @@ -1,7 +1,7 @@ namespace BurnOutSharp.Models.SGA { /// - public class Folder + public abstract class Folder { public uint NameOffset; diff --git a/BurnOutSharp.Models/SGA/Header.cs b/BurnOutSharp.Models/SGA/Header.cs index 9ed0541b..57cd9ee9 100644 --- a/BurnOutSharp.Models/SGA/Header.cs +++ b/BurnOutSharp.Models/SGA/Header.cs @@ -1,7 +1,7 @@ namespace BurnOutSharp.Models.SGA { /// - public class Header + public abstract class Header { public string Signature; diff --git a/BurnOutSharp.Models/SGA/Section.cs b/BurnOutSharp.Models/SGA/Section.cs index 78e2f1e3..c2cce077 100644 --- a/BurnOutSharp.Models/SGA/Section.cs +++ b/BurnOutSharp.Models/SGA/Section.cs @@ -1,7 +1,7 @@ namespace BurnOutSharp.Models.SGA { /// - public class Section + public abstract class Section { public string Alias; diff --git a/BurnOutSharp.Models/XZP/File.cs b/BurnOutSharp.Models/XZP/File.cs index e262d3d5..03bbd77a 100644 --- a/BurnOutSharp.Models/XZP/File.cs +++ b/BurnOutSharp.Models/XZP/File.cs @@ -4,7 +4,7 @@ namespace BurnOutSharp.Models.XZP /// XBox Package File /// /// - public class File + public sealed class File { /// /// Header data