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

@@ -33,7 +33,11 @@ namespace SabreTools.Models.PortableExecutable
/// to an executable file.
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 8)]
#if NET48
public byte[] Name;
#else
public byte[]? Name;
#endif
/// <summary>
/// The total size of the section when loaded into memory. If this value is
@@ -104,11 +108,19 @@ namespace SabreTools.Models.PortableExecutable
/// <summary>
/// COFF Relocations (Object Only)
/// </summary>
#if NET48
public COFFRelocation[] COFFRelocations;
#else
public COFFRelocation[]? COFFRelocations;
#endif
/// <summary>
/// COFF Line Numbers (Deprecated)
/// </summary>
#if NET48
public COFFLineNumber[] COFFLineNumbers;
#else
public COFFLineNumber[]? COFFLineNumbers;
#endif
}
}