0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 00:18:02 +03:00

Fix nullability warnings by initializing fields in constructors

This commit is contained in:
bird_egop
2025-04-12 18:05:31 +03:00
parent 79773b08aa
commit cf2d61915c
7 changed files with 86 additions and 3 deletions

View File

@ -22,6 +22,15 @@ namespace X86Disassembler.PE
public ushort NumberOfLinenumbers; // Number of line numbers
public uint Characteristics; // Characteristics
/// <summary>
/// Initializes a new instance of the SectionHeader class
/// </summary>
public SectionHeader()
{
// Initialize string field to avoid nullability warning
Name = string.Empty;
}
/// <summary>
/// Checks if the section contains code
/// </summary>