netfx-System.TypeInheritance 1.1.1

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);

Install-Package netfx-System.TypeInheritance -Version 1.1.1
dotnet add package netfx-System.TypeInheritance --version 1.1.1
<PackageReference Include="netfx-System.TypeInheritance" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add netfx-System.TypeInheritance --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.1 2,051 8/2/2012
1.1.0 1,160 8/30/2011 764 6/15/2011 788 5/20/2011 878 3/20/2011 943 3/20/2011 859 3/20/2011 859 3/20/2011