Skip to content

TypeDefInfo

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

Information about a type defined in the assembly’s TypeDef metadata table.

public sealed record TypeDefInfo : IEquatable<TypeDefInfo>

ObjectTypeDefInfo

TypeDefInfo(int, string, string, string, TypeAttributes, string?, int, int)

Section titled “TypeDefInfo(int, string, string, string, TypeAttributes, string?, int, int)”

Information about a type defined in the assembly’s TypeDef metadata table.

Parameters:

  • Token (Int32): The metadata token for this type definition.
  • Namespace (String): The namespace of the type, or empty string for global types.
  • Name (String): The simple name of the type.
  • FullName (String): The fully qualified name (Namespace.Name).
  • Attributes (TypeAttributes): The type attribute flags (visibility, layout, semantics).
  • BaseType (String): The fully qualified name of the base type, or null for interfaces/System.Object.
  • MethodCount (Int32): Number of methods defined on this type.
  • FieldCount (Int32): Number of fields defined on this type.
public TypeDefInfo(int Token, string Namespace, string Name, string FullName, TypeAttributes Attributes, string? BaseType, int MethodCount, int FieldCount)

The type attribute flags (visibility, layout, semantics).

Returns: TypeAttributes

public TypeAttributes Attributes { get; init; }

The fully qualified name of the base type, or null for interfaces/System.Object.

Returns: String

public string? BaseType { get; init; }

Number of fields defined on this type.

Returns: Int32

public int FieldCount { get; init; }

The fully qualified name (Namespace.Name).

Returns: String

public string FullName { get; init; }

Number of methods defined on this type.

Returns: Int32

public int MethodCount { get; init; }

The simple name of the type.

Returns: String

public string Name { get; init; }

The namespace of the type, or empty string for global types.

Returns: String

public string Namespace { get; init; }

The metadata token for this type definition.

Returns: Int32

public int Token { get; init; }

Deconstruct(out int, out string, out string, out string, out TypeAttributes, out string?, out int, out int)

Section titled “Deconstruct(out int, out string, out string, out string, out TypeAttributes, out string?, out int, out int)”

Parameters:

public void Deconstruct(out int Token, out string Namespace, out string Name, out string FullName, out TypeAttributes Attributes, out string? BaseType, out int MethodCount, out int FieldCount)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Parameters:

Returns: Boolean

public bool Equals(TypeDefInfo? other)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

Parameters:

Returns: Boolean

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

Parameters:

Returns: Boolean

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