TypeRefInfo
Namespace: Dotsider.Core.Analysis.Models
Assembly: Dotsider.Core.dll
Information about a referenced type from the TypeRef metadata table.
public sealed record TypeRefInfo : IEquatable<TypeRefInfo>Inheritance
Section titled “Inheritance”Object → TypeRefInfo
Implements
Section titled “Implements”Constructors
Section titled “Constructors”TypeRefInfo(int, string, string, string, string, string)
Section titled “TypeRefInfo(int, string, string, string, string, string)”Information about a referenced type from the TypeRef metadata table.
Parameters:
Token(Int32): The metadata token for this type reference.Namespace(String): The namespace of the referenced type.Name(String): The simple name of the referenced type.FullName(String): The fully qualified name (Namespace.Name).ResolutionScope(String): The scope in which the type is defined, rendered as a human-readable string — the referenced assembly’s simple name, the enclosing type’s full name, or the scope kind for module and module-reference scopes.ResolutionScopeId(String): The full-identity identifier of the referenced assembly, when the resolution scope ultimately derives from anAssemblyReference. For TypeRefs whose scope is another TypeRef (nested-type scopes) this carries the enclosing type’s resolution-scope id by walking the nested chain to its root. Empty for module or module-reference scopes, where no referenced assembly is involved. Used by the dependency-graph builder to group TypeRefs by full identity so per-edge counts are correct even when two references share a simple name.
public TypeRefInfo(int Token, string Namespace, string Name, string FullName, string ResolutionScope, string ResolutionScopeId)Properties
Section titled “Properties”FullName
Section titled “FullName”The fully qualified name (Namespace.Name).
Returns: String
public string FullName { get; init; }The simple name of the referenced type.
Returns: String
public string Name { get; init; }Namespace
Section titled “Namespace”The namespace of the referenced type.
Returns: String
public string Namespace { get; init; }ResolutionScope
Section titled “ResolutionScope”The scope in which the type is defined, rendered as a human-readable string — the referenced assembly’s simple name, the enclosing type’s full name, or the scope kind for module and module-reference scopes.
Returns: String
public string ResolutionScope { get; init; }ResolutionScopeId
Section titled “ResolutionScopeId”The full-identity identifier of the referenced assembly, when the resolution scope ultimately
derives from an AssemblyReference. For TypeRefs whose scope is another TypeRef
(nested-type scopes) this carries the enclosing type’s resolution-scope id by walking the
nested chain to its root. Empty for module or module-reference scopes, where no referenced
assembly is involved. Used by the dependency-graph builder to group TypeRefs by full
identity so per-edge counts are correct even when two references share a simple name.
Returns: String
public string ResolutionScopeId { get; init; }The metadata token for this type reference.
Returns: Int32
public int Token { get; init; }