Ensure more correct nullability

This commit is contained in:
Matt Nadareski
2023-09-10 20:27:14 -04:00
parent ce072691bb
commit 89ba5f4508
31 changed files with 63 additions and 63 deletions

View File

@@ -24,7 +24,7 @@ namespace SabreTools.Models.AACS
#if NET48
public DriveRevocationSignatureBlock[] SignatureBlocks;
#else
public DriveRevocationSignatureBlock[]? SignatureBlocks;
public DriveRevocationSignatureBlock?[]? SignatureBlocks;
#endif
}
}

View File

@@ -15,7 +15,7 @@ namespace SabreTools.Models.AACS
#if NET48
public DriveRevocationListEntry[] EntryFields;
#else
public DriveRevocationListEntry[]? EntryFields;
public DriveRevocationListEntry?[]? EntryFields;
#endif
}
}

View File

@@ -9,7 +9,7 @@ namespace SabreTools.Models.AACS
#if NET48
public SubsetDifference[] SubsetDifferences;
#else
public SubsetDifference[]? SubsetDifferences;
public SubsetDifference?[]? SubsetDifferences;
#endif
}
}

View File

@@ -27,7 +27,7 @@ namespace SabreTools.Models.AACS
#if NET48
public HostRevocationSignatureBlock[] SignatureBlocks;
#else
public HostRevocationSignatureBlock[]? SignatureBlocks;
public HostRevocationSignatureBlock?[]? SignatureBlocks;
#endif
}
}

View File

@@ -15,7 +15,7 @@ namespace SabreTools.Models.AACS
#if NET48
public HostRevocationListEntry[] EntryFields;
#else
public HostRevocationListEntry[]? EntryFields;
public HostRevocationListEntry?[]? EntryFields;
#endif
}
}

View File

@@ -12,7 +12,7 @@ namespace SabreTools.Models.AACS
#if NET48
public Record[] Records { get; set; }
#else
public Record[]? Records { get; set; }
public Record?[]? Records { get; set; }
#endif
}
}

View File

@@ -10,7 +10,7 @@ namespace SabreTools.Models.ArchiveDotOrg
#if NET48
public File[] File { get; set; }
#else
public File[]? File { get; set; }
public File?[]? File { get; set; }
#endif
#region DO NOT USE IN PRODUCTION

View File

@@ -15,7 +15,7 @@ namespace SabreTools.Models.AttractMode
#if NET48
public Row[] Row { get; set; }
#else
public Row[]? Row { get; set; }
public Row?[]? Row { get; set; }
#endif
}
}

View File

@@ -21,7 +21,7 @@
#if NET48
public FileEntry[] Files { get; set; }
#else
public FileEntry[]? Files { get; set; }
public FileEntry?[]? Files { get; set; }
#endif
}
}

View File

@@ -21,7 +21,7 @@ namespace SabreTools.Models.BSP
#if NET48
public Lump[] Lumps { get; set; }
#else
public Lump[]? Lumps { get; set; }
public Lump?[]? Lumps { get; set; }
#endif
/// <summary>
@@ -39,7 +39,7 @@ namespace SabreTools.Models.BSP
#if NET48
public Texture[] Textures { get; set; }
#else
public Texture[]? Textures { get; set; }
public Texture?[]? Textures { get; set; }
#endif
}
}

View File

@@ -32,7 +32,7 @@ namespace SabreTools.Models.CFB
#if NET48
public SectorNumber[] FATSectorNumbers { get; set; }
#else
public SectorNumber[]? FATSectorNumbers { get; set; }
public SectorNumber?[]? FATSectorNumbers { get; set; }
#endif
/// <summary>
@@ -49,7 +49,7 @@ namespace SabreTools.Models.CFB
#if NET48
public SectorNumber[] MiniFATSectorNumbers { get; set; }
#else
public SectorNumber[]? MiniFATSectorNumbers { get; set; }
public SectorNumber?[]? MiniFATSectorNumbers { get; set; }
#endif
/// <summary>
@@ -70,7 +70,7 @@ namespace SabreTools.Models.CFB
#if NET48
public SectorNumber[] DIFATSectorNumbers { get; set; }
#else
public SectorNumber[]? DIFATSectorNumbers { get; set; }
public SectorNumber?[]? DIFATSectorNumbers { get; set; }
#endif
/// <summary>
@@ -106,7 +106,7 @@ namespace SabreTools.Models.CFB
#if NET48
public DirectoryEntry[] DirectoryEntries { get; set; }
#else
public DirectoryEntry[]? DirectoryEntries { get; set; }
public DirectoryEntry?[]? DirectoryEntries { get; set; }
#endif
}
}

View File

@@ -129,7 +129,7 @@ namespace SabreTools.Models.CFB
#if NET48
public SectorNumber[] DIFAT;
#else
public SectorNumber[]? DIFAT;
public SectorNumber?[]? DIFAT;
#endif
}
}

View File

@@ -86,7 +86,7 @@ namespace SabreTools.Models.CFB
#if NET48
public Variant[] Properties;
#else
public Variant[]? Properties;
public Variant?[]? Properties;
#endif
#endregion

View File

@@ -23,7 +23,7 @@ namespace SabreTools.Models.Charts
#if NET48
public Dictionary<string, (string Name, string UnlockId)> Sections { get; set; }
#else
public Dictionary<string, (string Name, string UnlockId)>? Sections { get; set; }
public Dictionary<string, (string Name, string? UnlockId)>? Sections { get; set; }
#endif
}
}

View File

@@ -13,7 +13,7 @@ namespace SabreTools.Models.ClrMamePro
#if NET48
public GameBase[] Game { get; set; }
#else
public GameBase[]? Game { get; set; }
public GameBase?[]? Game { get; set; }
#endif
#region DO NOT USE IN PRODUCTION

View File

@@ -11,7 +11,7 @@ namespace SabreTools.Models.Compression.Quantum
#if NET48
public ModelSymbol[] Symbols;
#else
public ModelSymbol[]? Symbols;
public ModelSymbol?[]? Symbols;
#endif
#if NET48

View File

@@ -37,7 +37,7 @@ namespace SabreTools.Models.DVD
#if NET48
public AudioSubPictureAttributesTableEntry[] Entries;
#else
public AudioSubPictureAttributesTableEntry[]? Entries;
public AudioSubPictureAttributesTableEntry?[]? Entries;
#endif
}
}

View File

@@ -28,7 +28,7 @@ namespace SabreTools.Models.DVD
#if NET48
public CellAddressTableEntry[] Entries;
#else
public CellAddressTableEntry[]? Entries;
public CellAddressTableEntry?[]? Entries;
#endif
}
}

View File

@@ -29,7 +29,7 @@ namespace SabreTools.Models.DVD
#if NET48
public LanguageUnitTableEntry[] Entries;
#else
public LanguageUnitTableEntry[]? Entries;
public LanguageUnitTableEntry?[]? Entries;
#endif
/// <summary>
@@ -38,7 +38,7 @@ namespace SabreTools.Models.DVD
#if NET48
public ProgramChainTable[] ProgramChains;
#else
public ProgramChainTable[]? ProgramChains;
public ProgramChainTable?[]? ProgramChains;
#endif
}
}

View File

@@ -28,7 +28,7 @@ namespace SabreTools.Models.DVD
#if NET48
public ParentalManagementMasksTableEntry[] Entries;
#else
public ParentalManagementMasksTableEntry[]? Entries;
public ParentalManagementMasksTableEntry?[]? Entries;
#endif
/// <summary>

View File

@@ -29,7 +29,7 @@ namespace SabreTools.Models.DVD
#if NET48
public ProgramChainTableEntry[] Entries;
#else
public ProgramChainTableEntry[]? Entries;
public ProgramChainTableEntry?[]? Entries;
#endif
}
}

View File

@@ -28,7 +28,7 @@ namespace SabreTools.Models.DVD
#if NET48
public TitlesTableEntry[] Entries;
#else
public TitlesTableEntry[]? Entries;
public TitlesTableEntry?[]? Entries;
#endif
}
}

View File

@@ -32,7 +32,7 @@ namespace SabreTools.Models.GCF
#if NET48
public BlockEntry[] BlockEntries { get; set; }
#else
public BlockEntry[]? BlockEntries { get; set; }
public BlockEntry?[]? BlockEntries { get; set; }
#endif
/// <summary>
@@ -50,7 +50,7 @@ namespace SabreTools.Models.GCF
#if NET48
public FragmentationMap[] FragmentationMaps { get; set; }
#else
public FragmentationMap[]? FragmentationMaps { get; set; }
public FragmentationMap?[]? FragmentationMaps { get; set; }
#endif
/// <summary>
@@ -70,7 +70,7 @@ namespace SabreTools.Models.GCF
#if NET48
public BlockEntryMap[] BlockEntryMaps { get; set; }
#else
public BlockEntryMap[]? BlockEntryMaps { get; set; }
public BlockEntryMap?[]? BlockEntryMaps { get; set; }
#endif
/// <summary>
@@ -88,7 +88,7 @@ namespace SabreTools.Models.GCF
#if NET48
public DirectoryEntry[] DirectoryEntries { get; set; }
#else
public DirectoryEntry[]? DirectoryEntries { get; set; }
public DirectoryEntry?[]? DirectoryEntries { get; set; }
#endif
/// <summary>
@@ -106,7 +106,7 @@ namespace SabreTools.Models.GCF
#if NET48
public DirectoryInfo1Entry[] DirectoryInfo1Entries { get; set; }
#else
public DirectoryInfo1Entry[]? DirectoryInfo1Entries { get; set; }
public DirectoryInfo1Entry?[]? DirectoryInfo1Entries { get; set; }
#endif
/// <summary>
@@ -115,7 +115,7 @@ namespace SabreTools.Models.GCF
#if NET48
public DirectoryInfo2Entry[] DirectoryInfo2Entries { get; set; }
#else
public DirectoryInfo2Entry[]? DirectoryInfo2Entries { get; set; }
public DirectoryInfo2Entry?[]? DirectoryInfo2Entries { get; set; }
#endif
/// <summary>
@@ -124,7 +124,7 @@ namespace SabreTools.Models.GCF
#if NET48
public DirectoryCopyEntry[] DirectoryCopyEntries { get; set; }
#else
public DirectoryCopyEntry[]? DirectoryCopyEntries { get; set; }
public DirectoryCopyEntry?[]? DirectoryCopyEntries { get; set; }
#endif
/// <summary>
@@ -133,7 +133,7 @@ namespace SabreTools.Models.GCF
#if NET48
public DirectoryLocalEntry[] DirectoryLocalEntries { get; set; }
#else
public DirectoryLocalEntry[]? DirectoryLocalEntries { get; set; }
public DirectoryLocalEntry?[]? DirectoryLocalEntries { get; set; }
#endif
/// <summary>
@@ -151,7 +151,7 @@ namespace SabreTools.Models.GCF
#if NET48
public DirectoryMapEntry[] DirectoryMapEntries { get; set; }
#else
public DirectoryMapEntry[]? DirectoryMapEntries { get; set; }
public DirectoryMapEntry?[]? DirectoryMapEntries { get; set; }
#endif
/// <summary>
@@ -178,7 +178,7 @@ namespace SabreTools.Models.GCF
#if NET48
public ChecksumMapEntry[] ChecksumMapEntries { get; set; }
#else
public ChecksumMapEntry[]? ChecksumMapEntries { get; set; }
public ChecksumMapEntry?[]? ChecksumMapEntries { get; set; }
#endif
/// <summary>
@@ -187,7 +187,7 @@ namespace SabreTools.Models.GCF
#if NET48
public ChecksumEntry[] ChecksumEntries { get; set; }
#else
public ChecksumEntry[]? ChecksumEntries { get; set; }
public ChecksumEntry?[]? ChecksumEntries { get; set; }
#endif
/// <summary>

View File

@@ -63,7 +63,7 @@ namespace SabreTools.Models.InstallShieldCabinet
#if NET48
public FileDescriptor[] FileDescriptors { get; set; }
#else
public FileDescriptor[]? FileDescriptors { get; set; }
public FileDescriptor?[]? FileDescriptors { get; set; }
#endif
#endregion
@@ -85,7 +85,7 @@ namespace SabreTools.Models.InstallShieldCabinet
#if NET48
public FileGroup[] FileGroups { get; set; }
#else
public FileGroup[]? FileGroups { get; set; }
public FileGroup?[]? FileGroups { get; set; }
#endif
#endregion
@@ -107,7 +107,7 @@ namespace SabreTools.Models.InstallShieldCabinet
#if NET48
public Component[] Components { get; set; }
#else
public Component[]? Components { get; set; }
public Component?[]? Components { get; set; }
#endif
#endregion

View File

@@ -57,7 +57,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public EntryTableEntry[] TableEntries;
#else
public EntryTableEntry[]? TableEntries;
public EntryTableEntry?[]? TableEntries;
#endif
}
}

View File

@@ -34,7 +34,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public ObjectTableEntry[] ObjectTable { get; set; }
#else
public ObjectTableEntry[]? ObjectTable { get; set; }
public ObjectTableEntry?[]? ObjectTable { get; set; }
#endif
/// <summary>
@@ -43,7 +43,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public ObjectPageMapEntry[] ObjectPageMap { get; set; }
#else
public ObjectPageMapEntry[]? ObjectPageMap { get; set; }
public ObjectPageMapEntry?[]? ObjectPageMap { get; set; }
#endif
// TODO: Object iterate data map table (Undefined)
@@ -54,7 +54,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public ResourceTableEntry[] ResourceTable { get; set; }
#else
public ResourceTableEntry[]? ResourceTable { get; set; }
public ResourceTableEntry?[]? ResourceTable { get; set; }
#endif
/// <summary>
@@ -63,7 +63,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public ResidentNamesTableEntry[] ResidentNamesTable { get; set; }
#else
public ResidentNamesTableEntry[]? ResidentNamesTable { get; set; }
public ResidentNamesTableEntry?[]? ResidentNamesTable { get; set; }
#endif
/// <summary>
@@ -72,7 +72,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public EntryTableBundle[] EntryTable { get; set; }
#else
public EntryTableBundle[]? EntryTable { get; set; }
public EntryTableBundle?[]? EntryTable { get; set; }
#endif
/// <summary>
@@ -81,7 +81,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public ModuleFormatDirectivesTableEntry[] ModuleFormatDirectivesTable { get; set; }
#else
public ModuleFormatDirectivesTableEntry[]? ModuleFormatDirectivesTable { get; set; }
public ModuleFormatDirectivesTableEntry?[]? ModuleFormatDirectivesTable { get; set; }
#endif
/// <summary>
@@ -90,7 +90,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public VerifyRecordDirectiveTableEntry[] VerifyRecordDirectiveTable { get; set; }
#else
public VerifyRecordDirectiveTableEntry[]? VerifyRecordDirectiveTable { get; set; }
public VerifyRecordDirectiveTableEntry?[]? VerifyRecordDirectiveTable { get; set; }
#endif
/// <summary>
@@ -99,7 +99,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public FixupPageTableEntry[] FixupPageTable { get; set; }
#else
public FixupPageTableEntry[]? FixupPageTable { get; set; }
public FixupPageTableEntry?[]? FixupPageTable { get; set; }
#endif
/// <summary>
@@ -108,7 +108,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public FixupRecordTableEntry[] FixupRecordTable { get; set; }
#else
public FixupRecordTableEntry[]? FixupRecordTable { get; set; }
public FixupRecordTableEntry?[]? FixupRecordTable { get; set; }
#endif
/// <summary>
@@ -117,7 +117,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public ImportModuleNameTableEntry[] ImportModuleNameTable { get; set; }
#else
public ImportModuleNameTableEntry[]? ImportModuleNameTable { get; set; }
public ImportModuleNameTableEntry?[]? ImportModuleNameTable { get; set; }
#endif
/// <summary>
@@ -126,7 +126,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public ImportModuleProcedureNameTableEntry[] ImportModuleProcedureNameTable { get; set; }
#else
public ImportModuleProcedureNameTableEntry[]? ImportModuleProcedureNameTable { get; set; }
public ImportModuleProcedureNameTableEntry?[]? ImportModuleProcedureNameTable { get; set; }
#endif
/// <summary>
@@ -135,7 +135,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public PerPageChecksumTableEntry[] PerPageChecksumTable { get; set; }
#else
public PerPageChecksumTableEntry[]? PerPageChecksumTable { get; set; }
public PerPageChecksumTableEntry?[]? PerPageChecksumTable { get; set; }
#endif
/// <summary>
@@ -144,7 +144,7 @@ namespace SabreTools.Models.LinearExecutable
#if NET48
public NonResidentNamesTableEntry[] NonResidentNamesTable { get; set; }
#else
public NonResidentNamesTableEntry[]? NonResidentNamesTable { get; set; }
public NonResidentNamesTableEntry?[]? NonResidentNamesTable { get; set; }
#endif
// TODO: Non-resident directives data (Undefined)

View File

@@ -31,7 +31,7 @@ namespace SabreTools.Models.MSDOS
#if NET48
public RelocationEntry[] RelocationTable { get; set; }
#else
public RelocationEntry[]? RelocationTable { get; set; }
public RelocationEntry?[]? RelocationTable { get; set; }
#endif
}
}

View File

@@ -62,7 +62,7 @@ namespace SabreTools.Models.MicrosoftCabinet
#if NET48
public CFDATA[] DataBlocks;
#else
public CFDATA[]? DataBlocks;
public CFDATA?[]? DataBlocks;
#endif
}
}

View File

@@ -24,7 +24,7 @@
#if NET48
public CFFOLDER[] Folders { get; set; }
#else
public CFFOLDER[]? Folders { get; set; }
public CFFOLDER?[]? Folders { get; set; }
#endif
/// <summary>
@@ -33,7 +33,7 @@
#if NET48
public CFFILE[] Files { get; set; }
#else
public CFFILE[]? Files { get; set; }
public CFFILE?[]? Files { get; set; }
#endif
}
}

View File

@@ -56,7 +56,7 @@
#if NET48
public HashEntry[] HashTable { get; set; }
#else
public HashEntry[]? HashTable { get; set; }
public HashEntry?[]? HashTable { get; set; }
#endif
/// <summary>
@@ -65,7 +65,7 @@
#if NET48
public BlockEntry[] BlockTable { get; set; }
#else
public BlockEntry[]? BlockTable { get; set; }
public BlockEntry?[]? BlockTable { get; set; }
#endif
/// <summary>

View File

@@ -21,7 +21,7 @@ namespace SabreTools.Models.WAD
#if NET48
public Lump[] Lumps { get; set; }
#else
public Lump[]? Lumps { get; set; }
public Lump?[]? Lumps { get; set; }
#endif
/// <summary>
@@ -30,7 +30,7 @@ namespace SabreTools.Models.WAD
#if NET48
public LumpInfo[] LumpInfos { get; set; }
#else
public LumpInfo[]? LumpInfos { get; set; }
public LumpInfo?[]? LumpInfos { get; set; }
#endif
}
}