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

@@ -29,7 +29,11 @@
/// <summary>
/// The Unicode string L"VS_VERSION_INFO".
/// </summary>
#if NET48
public string Key;
#else
public string? Key;
#endif
/// <summary>
/// Contains as many zero words as necessary to align the Value member on a 32-bit boundary.
@@ -40,7 +44,11 @@
/// Arbitrary data associated with this VS_VERSIONINFO structure. The ValueLength member
/// specifies the length of this member; if ValueLength is zero, this member does not exist.
/// </summary>
#if NET48
public FixedFileInfo Value;
#else
public FixedFileInfo? Value;
#endif
/// <summary>
/// As many zero words as necessary to align the Children member on a 32-bit boundary.
@@ -51,11 +59,19 @@
/// <summary>
/// The StringFileInfo structure to store user-defined string information data.
/// </summary>
#if NET48
public StringFileInfo StringFileInfo;
#else
public StringFileInfo? StringFileInfo;
#endif
/// <summary>
/// The VarFileInfo structure to store language information data.
/// </summary>
#if NET48
public VarFileInfo VarFileInfo;
#else
public VarFileInfo? VarFileInfo;
#endif
}
}