Skip to main content
netfx-System.TypeInheritance package icon

netfx-System.TypeInheritance

Allows inspecting the exact type inheritance tree as declared in source, rather than the flattened view that reflection provides (for implemented interfaces, for example). Enables code to determine what are the interfaces implemented directly by a type rather than a base class, as well as determine the "distance" in the hierarchy to those implementations. var tree = typeof(Window).GetInheritanceTree(); // Gets just the base class ContentControl, instead // of that plus 9 interfaces implemented on base types Assert.Equal(1, tree.Inheritance.Count); Assert.Equal(typeof(ContentControl), tree.Inheritance.First().Type);

Total Downloads
27.1K
27,134
Published
Aug 2, 2012
Latest stable version

Install

.NET CLI
dotnet add package netfx-System.TypeInheritance --version 1.1.1
Package Manager Console
Install-Package netfx-System.TypeInheritance -Version 1.1.1
PackageReference
<PackageReference Include="netfx-System.TypeInheritance" Version="1.1.1" />

Frameworks

No framework metadata available.

Dependencies

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.