Skip to content

MethodDefInfo

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

Information about a method defined in the assembly’s MethodDef metadata table.

public sealed record MethodDefInfo : IEquatable<MethodDefInfo>

ObjectMethodDefInfo

MethodDefInfo(int, string, string, string, MethodAttributes, MethodImplAttributes, int)

Section titled “MethodDefInfo(int, string, string, string, MethodAttributes, MethodImplAttributes, int)”

Information about a method defined in the assembly’s MethodDef metadata table.

Parameters:

  • Token (Int32): The metadata token for this method definition.
  • DeclaringType (String): The fully qualified name of the type that declares this method.
  • Name (String): The simple name of the method.
  • Signature (String): The decoded method signature string (e.g., “void(int, string)”).
  • Attributes (MethodAttributes): The method attribute flags (access, vtable layout, implementation).
  • ImplAttributes (MethodImplAttributes): The method implementation attribute flags (IL, native, runtime).
  • Rva (Int32): The relative virtual address of the method body, or zero for abstract/extern methods.
public MethodDefInfo(int Token, string DeclaringType, string Name, string Signature, MethodAttributes Attributes, MethodImplAttributes ImplAttributes, int Rva)

The method attribute flags (access, vtable layout, implementation).

Returns: MethodAttributes

public MethodAttributes Attributes { get; init; }

The fully qualified name of the type that declares this method.

Returns: String

public string DeclaringType { get; init; }

The method implementation attribute flags (IL, native, runtime).

Returns: MethodImplAttributes

public MethodImplAttributes ImplAttributes { get; init; }

The simple name of the method.

Returns: String

public string Name { get; init; }

The relative virtual address of the method body, or zero for abstract/extern methods.

Returns: Int32

public int Rva { get; init; }

The decoded method signature string (e.g., “void(int, string)”).

Returns: String

public string Signature { get; init; }

The metadata token for this method definition.

Returns: Int32

public int Token { get; init; }