Fix warnings from nullabilty

This commit is contained in:
Matt Nadareski
2023-09-04 21:14:41 -04:00
parent 46824bd91d
commit 0e23d131fe
212 changed files with 3018 additions and 1 deletions

View File

@@ -14,7 +14,11 @@ namespace SabreTools.Models.MSDOS
/// <summary>
/// MS-DOS executable header
/// </summary>
#if NET48
public ExecutableHeader Header { get; set; }
#else
public ExecutableHeader? Header { get; set; }
#endif
/// <summary>
/// After loading the executable into memory, the program loader goes through
@@ -24,6 +28,10 @@ namespace SabreTools.Models.MSDOS
/// make the loader add start segment address to the value at offset
/// 1*0x10+0x1A=0x2A within the program data.
/// </summary>
#if NET48
public RelocationEntry[] RelocationTable { get; set; }
#else
public RelocationEntry[]? RelocationTable { get; set; }
#endif
}
}