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

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