netfx-System.Collections.Generic.IEnumerable.Traverse 1.1.0

Install-Package netfx-System.Collections.Generic.IEnumerable.Traverse -Version 1.1.0
dotnet add package netfx-System.Collections.Generic.IEnumerable.Traverse --version 1.1.0
<PackageReference Include="netfx-System.Collections.Generic.IEnumerable.Traverse" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add netfx-System.Collections.Generic.IEnumerable.Traverse --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: netfx-System.Collections.Generic.IEnumerable.Traverse, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install netfx-System.Collections.Generic.IEnumerable.Traverse as a Cake Addin
#addin nuget:?package=netfx-System.Collections.Generic.IEnumerable.Traverse&version=1.1.0

// Install netfx-System.Collections.Generic.IEnumerable.Traverse as a Cake Tool
#tool nuget:?package=netfx-System.Collections.Generic.IEnumerable.Traverse&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Traverse an enumerable tree, depth or breadth first.

var dirs = new DirectoryInfo("C:\\")
.Traverse(TraverseKind.BreadthFirst, dir => dir.EnumerateDirectories());

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on netfx-System.Collections.Generic.IEnumerable.Traverse:

Package Downloads

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


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.


Tests for netfx-System.TypeInheritance

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 9,890 8/30/2011 2,371 6/15/2011 1,210 5/20/2011 1,362 3/20/2011 1,321 3/20/2011 2,302 3/20/2011 1,368 3/20/2011 1,420 3/20/2011