Ensure explicit getters and setters

This commit is contained in:
Matt Nadareski
2023-09-10 21:24:10 -04:00
parent e3c5c76ee5
commit 670b8428c2
277 changed files with 2583 additions and 2584 deletions

View File

@@ -20,15 +20,15 @@ namespace SabreTools.Models.NewExecutable
/// <summary>
/// Alignment shift count for resource data.
/// </summary>
public ushort AlignmentShiftCount;
public ushort AlignmentShiftCount { get; set; }
/// <summary>
/// A table of resource type information blocks follows.
/// </summary>
#if NET48
public ResourceTypeInformationEntry[] ResourceTypes;
public ResourceTypeInformationEntry[] ResourceTypes { get; set; }
#else
public ResourceTypeInformationEntry?[]? ResourceTypes;
public ResourceTypeInformationEntry?[]? ResourceTypes { get; set; }
#endif
/// <summary>
@@ -36,9 +36,9 @@ namespace SabreTools.Models.NewExecutable
/// resource table.
/// </summary>
#if NET48
public Dictionary<ushort, ResourceTypeAndNameString> TypeAndNameStrings;
public Dictionary<ushort, ResourceTypeAndNameString> TypeAndNameStrings { get; set; }
#else
public Dictionary<ushort, ResourceTypeAndNameString?>? TypeAndNameStrings;
public Dictionary<ushort, ResourceTypeAndNameString?>? TypeAndNameStrings { get; set; }
#endif
}
}