Remove framework gating

This commit is contained in:
Matt Nadareski
2023-11-07 20:57:05 -05:00
parent e582ce8726
commit 1f340bd244
368 changed files with 5 additions and 7413 deletions

View File

@@ -16,82 +16,46 @@ namespace SabreTools.Models.NewExecutable
/// <summary>
/// MS-DOS executable stub
/// </summary>
#if NET48
public MSDOS.Executable Stub { get; set; }
#else
public MSDOS.Executable? Stub { get; set; }
#endif
/// <summary>
/// New Executable header
/// </summary>
#if NET48
public ExecutableHeader Header { get; set; }
#else
public ExecutableHeader? Header { get; set; }
#endif
/// <summary>
/// Segment table
/// </summary>
#if NET48
public SegmentTableEntry[] SegmentTable { get; set; }
#else
public SegmentTableEntry?[]? SegmentTable { get; set; }
#endif
/// <summary>
/// Resource table
/// </summary>
#if NET48
public ResourceTable ResourceTable { get; set; }
#else
public ResourceTable? ResourceTable { get; set; }
#endif
/// <summary>
/// Resident-Name table
/// </summary>
#if NET48
public ResidentNameTableEntry[] ResidentNameTable { get; set; }
#else
public ResidentNameTableEntry?[]? ResidentNameTable { get; set; }
#endif
/// <summary>
/// Module-Reference table
/// </summary>
#if NET48
public ModuleReferenceTableEntry[] ModuleReferenceTable { get; set; }
#else
public ModuleReferenceTableEntry?[]? ModuleReferenceTable { get; set; }
#endif
/// <summary>
/// Imported-Name table
/// </summary>
#if NET48
public Dictionary<ushort, ImportedNameTableEntry> ImportedNameTable { get; set; }
#else
public Dictionary<ushort, ImportedNameTableEntry?>? ImportedNameTable { get; set; }
#endif
/// <summary>
/// Entry table
/// </summary>
#if NET48
public EntryTableBundle[] EntryTable { get; set; }
#else
public EntryTableBundle?[]? EntryTable { get; set; }
#endif
/// <summary>
/// Nonresident-Name table
/// </summary>
#if NET48
public NonResidentNameTableEntry[] NonResidentNameTable { get; set; }
#else
public NonResidentNameTableEntry?[]? NonResidentNameTable { get; set; }
#endif
}
}

View File

@@ -13,11 +13,7 @@ namespace SabreTools.Models.NewExecutable
/// "N" is low-order byte.
/// "E" is high-order byte.
/// </summary>
#if NET48
public string Magic;
#else
public string? Magic;
#endif
/// <summary>
/// Version number of the linker.

View File

@@ -20,10 +20,6 @@
/// <summary>
/// ASCII text of the name string.
/// </summary>
#if NET48
public byte[] NameString { get; set; }
#else
public byte[]? NameString { get; set; }
#endif
}
}

View File

@@ -20,11 +20,7 @@
/// <summary>
/// ASCII text of the name string.
/// </summary>
#if NET48
public byte[] NameString { get; set; }
#else
public byte[]? NameString { get; set; }
#endif
/// <summary>
/// Ordinal number (index into entry table). This value is ignored

View File

@@ -18,10 +18,6 @@
/// <summary>
/// A table of relocation records follows.
/// </summary>
#if NET48
public RelocationRecord[] RelocationRecords { get; set; }
#else
public RelocationRecord?[]? RelocationRecords { get; set; }
#endif
}
}

View File

@@ -34,40 +34,24 @@
/// INTERNALREF
/// </summary>
/// <remarks>Must be <c>NULL</c> if <see cref="Flags"/> is not set to <see cref="RelocationRecordFlag.INTERNALREF"/></remarks>
#if NET48
public InternalRefRelocationRecord InternalRefRelocationRecord { get; set; }
#else
public InternalRefRelocationRecord? InternalRefRelocationRecord { get; set; }
#endif
/// <summary>
/// IMPORTNAME
/// </summary>
/// <remarks>Must be <c>NULL</c> if <see cref="Flags"/> is not set to <see cref="RelocationRecordFlag.IMPORTNAME"/></remarks>
#if NET48
public ImportNameRelocationRecord ImportNameRelocationRecord { get; set; }
#else
public ImportNameRelocationRecord? ImportNameRelocationRecord { get; set; }
#endif
/// <summary>
/// IMPORTORDINAL
/// </summary>
/// <remarks>Must be <c>NULL</c> if <see cref="Flags"/> is not set to <see cref="RelocationRecordFlag.IMPORTORDINAL"/></remarks>
#if NET48
public ImportOrdinalRelocationRecord ImportOrdinalRelocationRecord { get; set; }
#else
public ImportOrdinalRelocationRecord? ImportOrdinalRelocationRecord { get; set; }
#endif
/// <summary>
/// IMPORTORDINAL
/// </summary>
/// <remarks>Must be <c>NULL</c> if <see cref="Flags"/> is not set to <see cref="RelocationRecordFlag.OSFIXUP"/></remarks>
#if NET48
public OSFixupRelocationRecord OSFixupRelocationRecord { get; set; }
#else
public OSFixupRelocationRecord? OSFixupRelocationRecord { get; set; }
#endif
}
}

View File

@@ -19,11 +19,7 @@
/// <summary>
/// ASCII text of the name string.
/// </summary>
#if NET48
public byte[] NameString { get; set; }
#else
public byte[]? NameString { get; set; }
#endif
/// <summary>
/// Ordinal number (index into entry table). This value is ignored

View File

@@ -23,20 +23,12 @@ namespace SabreTools.Models.NewExecutable
/// <summary>
/// A table of resource type information blocks follows.
/// </summary>
#if NET48
public ResourceTypeInformationEntry[] ResourceTypes { get; set; }
#else
public ResourceTypeInformationEntry?[]? ResourceTypes { get; set; }
#endif
/// <summary>
/// Resource type and name strings are stored at the end of the
/// resource table.
/// </summary>
#if NET48
public Dictionary<ushort, ResourceTypeAndNameString> TypeAndNameStrings { get; set; }
#else
public Dictionary<ushort, ResourceTypeAndNameString?>? TypeAndNameStrings { get; set; }
#endif
}
}

View File

@@ -18,10 +18,6 @@
/// <summary>
/// ASCII text of the type or name string.
/// </summary>
#if NET48
public byte[] Text { get; set; }
#else
public byte[]? Text { get; set; }
#endif
}
}

View File

@@ -29,10 +29,6 @@
/// <summary>
/// A table of resources for this type follows.
/// </summary>
#if NET48
public ResourceTypeResourceEntry[] Resources { get; set; }
#else
public ResourceTypeResourceEntry?[]? Resources { get; set; }
#endif
}
}