Skip to content

ClrHeader

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

CLR (Common Language Runtime) header information from the PE file’s COR20 header.

public sealed record ClrHeader : IEquatable<ClrHeader>

ObjectClrHeader

ClrHeader(int, int, int, int, CorFlags, int, int, int, int, int)

Section titled “ClrHeader(int, int, int, int, CorFlags, int, int, int, int, int)”

CLR (Common Language Runtime) header information from the PE file’s COR20 header.

Parameters:

  • MajorRuntimeVersion (Int32): Major version of the CLR required.
  • MinorRuntimeVersion (Int32): Minor version of the CLR required.
  • MetadataRva (Int32): RVA of the metadata directory.
  • MetadataSize (Int32): Size of the metadata directory in bytes.
  • Flags (CorFlags): CLR header flags (ILOnly, 32BitRequired, StrongNameSigned, etc.).
  • EntryPointToken (Int32): Metadata token of the entry point method, or zero.
  • ResourcesRva (Int32): RVA of the managed resources directory.
  • ResourcesSize (Int32): Size of the managed resources directory.
  • StrongNameSignatureRva (Int32): RVA of the strong name signature.
  • StrongNameSignatureSize (Int32): Size of the strong name signature.
public ClrHeader(int MajorRuntimeVersion, int MinorRuntimeVersion, int MetadataRva, int MetadataSize, CorFlags Flags, int EntryPointToken, int ResourcesRva, int ResourcesSize, int StrongNameSignatureRva, int StrongNameSignatureSize)

Metadata token of the entry point method, or zero.

Returns: Int32

public int EntryPointToken { get; init; }

CLR header flags (ILOnly, 32BitRequired, StrongNameSigned, etc.).

Returns: CorFlags

public CorFlags Flags { get; init; }

Major version of the CLR required.

Returns: Int32

public int MajorRuntimeVersion { get; init; }

RVA of the metadata directory.

Returns: Int32

public int MetadataRva { get; init; }

Size of the metadata directory in bytes.

Returns: Int32

public int MetadataSize { get; init; }

Minor version of the CLR required.

Returns: Int32

public int MinorRuntimeVersion { get; init; }

RVA of the managed resources directory.

Returns: Int32

public int ResourcesRva { get; init; }

Size of the managed resources directory.

Returns: Int32

public int ResourcesSize { get; init; }

RVA of the strong name signature.

Returns: Int32

public int StrongNameSignatureRva { get; init; }

Size of the strong name signature.

Returns: Int32

public int StrongNameSignatureSize { get; init; }