Skip to main content

The provided adapter pattern allows to convert any object to any other supported type, as provided by the registered adapters. This package is a convenience grouping of all three separate pieces, for cases where you want to deploy all of them in a single project. ======= 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.

Total Downloads
16.5K
16,513
Published
Jan 14, 2013
Latest stable version

Install

.NET CLI
dotnet add package Adapter --version 1.1.1301.1418
Package Manager Console
Install-Package Adapter -Version 1.1.1301.1418
PackageReference
<PackageReference Include="Adapter" Version="1.1.1301.1418" />

Frameworks

No framework metadata available.

Dependencies

[1.0.1212.519, )
[1.0.1212.519, )
[1.0.1212.519, )

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.