<PackageReference Include="System.Reflection.Metadata" Version="11.0.0" />

System.Reflection.Metadata.TypeDefinition

public struct TypeDefinition
public TypeAttributes Attributes { get; }

public EntityHandle BaseType { get; }

Gets the base type of the type definition: either TypeSpecificationHandle, TypeReferenceHandle or TypeDefinitionHandle.

public bool IsNested { get; }

Gets a value that indicates whether this is a nested type.

public StringHandle Name { get; }

Gets the name of the type.

public StringHandle Namespace { get; }

Gets the full name of the namespace where the type is defined.

Gets the definition handle of the namespace where the type is defined.

Returns the enclosing type of a specified nested type.

Returns an array of types nested in the specified type.