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>Inheritance
Section titled “Inheritance”Object → MethodDefInfo
Implements
Section titled “Implements”Constructors
Section titled “Constructors”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)Properties
Section titled “Properties”Attributes
Section titled “Attributes”The method attribute flags (access, vtable layout, implementation).
Returns: MethodAttributes
public MethodAttributes Attributes { get; init; }DeclaringType
Section titled “DeclaringType”The fully qualified name of the type that declares this method.
Returns: String
public string DeclaringType { get; init; }ImplAttributes
Section titled “ImplAttributes”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; }Signature
Section titled “Signature”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; }Methods
Section titled “Methods”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:
Token(Int32)DeclaringType(String)Name(String)Signature(String)Attributes(MethodAttributes)ImplAttributes(MethodImplAttributes)Rva(Int32)
public void Deconstruct(out int Token, out string DeclaringType, out string Name, out string Signature, out MethodAttributes Attributes, out MethodImplAttributes ImplAttributes, out int Rva)Equals(MethodDefInfo?)
Section titled “Equals(MethodDefInfo?)”Parameters:
other(MethodDefInfo)
Returns: Boolean
public bool Equals(MethodDefInfo? other)Equals(object?)
Section titled “Equals(object?)”Parameters:
obj(Object)
Returns: Boolean
public override bool Equals(object? obj)GetHashCode()
Section titled “GetHashCode()”Returns: Int32
public override int GetHashCode()ToString()
Section titled “ToString()”Returns: String
public override string ToString()Members
Section titled “Members”operator !=(MethodDefInfo?, MethodDefInfo?)
Section titled “operator !=(MethodDefInfo?, MethodDefInfo?)”Parameters:
left(MethodDefInfo)right(MethodDefInfo)
Returns: Boolean
public static bool operator !=(MethodDefInfo? left, MethodDefInfo? right)operator ==(MethodDefInfo?, MethodDefInfo?)
Section titled “operator ==(MethodDefInfo?, MethodDefInfo?)”Parameters:
left(MethodDefInfo)right(MethodDefInfo)
Returns: Boolean
public static bool operator ==(MethodDefInfo? left, MethodDefInfo? right)