netfx-System.TypeInheritance 1.1.1

dotnet add package netfx-System.TypeInheritance --version 1.1.1                
NuGet\Install-Package netfx-System.TypeInheritance -Version 1.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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                
#r "nuget: netfx-System.TypeInheritance, 1.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install netfx-System.TypeInheritance as a Cake Addin
#addin nuget:?package=netfx-System.TypeInheritance&version=1.1.1

// Install netfx-System.TypeInheritance as a Cake Tool
#tool nuget:?package=netfx-System.TypeInheritance&version=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);

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on netfx-System.TypeInheritance:

Package Downloads
Adapter.Implementation.Source

The provided adapter pattern allows to convert any object to any other supported type, as provided by the registered adapters. This package provides the actual implementation of the service. It should only be added to the bootstrapping component of your application. ======= Example ======= IProject project = GetCurrentProject(); // say we need to use it as an MSBuild project, if possible IMSBuildProject msbuild = project.As<IMSBuildProject>(); if (msbuild != null) // do MSBuild stuff with it. ======= Adapters ======= public class ProjectToMsBuildAdapter : IAdapter<IProject, IMSBuildProject> { // Implement actual conversion. } The conversion behavior is now decoupled from the usage. Note that to create adapter implementations, you need to install the Adapter.Sdk package.

NetFx.Patterns.Adapter.Implementation

Provides the implementation of an API and service to perform general purpose adaptation of one type to another via registered adapters.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 5,247 8/2/2012
1.1.0 2,299 8/30/2011
1.0.0.12 1,558 6/15/2011
1.0.0.10 1,645 5/20/2011
1.0.0.4 1,760 3/20/2011
1.0.0.3 1,822 3/20/2011
1.0.0.2 1,717 3/20/2011
1.0.0.1 1,741 3/20/2011