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; }

Deconstruct(out int, out string, out string, out string, out MethodAttributes, out MethodImplAttributes, out int)

Section titled “Deconstruct(out int, out string, out string, out string, out MethodAttributes, out MethodImplAttributes, out int)”

Parameters:

public void Deconstruct(out int Token, out string DeclaringType, out string Name, out string Signature, out MethodAttributes Attributes, out MethodImplAttributes ImplAttributes, out int Rva)

Parameters:

Returns: Boolean

public bool Equals(MethodDefInfo? other)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

operator !=(MethodDefInfo?, MethodDefInfo?)

Section titled “operator !=(MethodDefInfo?, MethodDefInfo?)”

Parameters:

Returns: Boolean

public static bool operator !=(MethodDefInfo? left, MethodDefInfo? right)

operator ==(MethodDefInfo?, MethodDefInfo?)

Section titled “operator ==(MethodDefInfo?, MethodDefInfo?)”

Parameters:

Returns: Boolean

public static bool operator ==(MethodDefInfo? left, MethodDefInfo? right)