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>Inheritance
Section titled “Inheritance”Object → TypeDefInfo
Implements
Section titled “Implements”Constructors
Section titled “Constructors”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)Properties
Section titled “Properties”Attributes
Section titled “Attributes”The type attribute flags (visibility, layout, semantics).
Returns: TypeAttributes
public TypeAttributes Attributes { get; init; }BaseType
Section titled “BaseType”The fully qualified name of the base type, or null for interfaces/System.Object.
Returns: String
public string? BaseType { get; init; }FieldCount
Section titled “FieldCount”Number of fields defined on this type.
Returns: Int32
public int FieldCount { get; init; }FullName
Section titled “FullName”The fully qualified name (Namespace.Name).
Returns: String
public string FullName { get; init; }MethodCount
Section titled “MethodCount”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; }Namespace
Section titled “Namespace”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; }