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

Update code style to follow project rules with one-liner namespace declarations

This commit is contained in:
bird_egop
2025-04-12 18:23:18 +03:00
parent 53de948376
commit 6a69b0b91b
16 changed files with 1126 additions and 1172 deletions

View File

@ -1,28 +1,25 @@
using System.Collections.Generic;
namespace X86Disassembler.PE;
namespace X86Disassembler.PE
/// <summary>
/// Represents an Import Descriptor in a PE file
/// </summary>
public class ImportDescriptor
{
public uint OriginalFirstThunk; // RVA to original first thunk
public uint TimeDateStamp; // Time and date stamp
public uint ForwarderChain; // Forwarder chain
public uint Name; // RVA to the name of the DLL
public string DllName; // The actual name of the DLL
public uint FirstThunk; // RVA to first thunk
public List<ImportedFunction> Functions { get; } = new List<ImportedFunction>();
/// <summary>
/// Represents an Import Descriptor in a PE file
/// Initializes a new instance of the ImportDescriptor class
/// </summary>
public class ImportDescriptor
public ImportDescriptor()
{
public uint OriginalFirstThunk; // RVA to original first thunk
public uint TimeDateStamp; // Time and date stamp
public uint ForwarderChain; // Forwarder chain
public uint Name; // RVA to the name of the DLL
public string DllName; // The actual name of the DLL
public uint FirstThunk; // RVA to first thunk
public List<ImportedFunction> Functions { get; } = new List<ImportedFunction>();
/// <summary>
/// Initializes a new instance of the ImportDescriptor class
/// </summary>
public ImportDescriptor()
{
// Initialize string field to avoid nullability warning
DllName = string.Empty;
}
// Initialize string field to avoid nullability warning
DllName = string.Empty;
}
}
}