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:
@ -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>
|
||||
|
Reference in New Issue
Block a user