WinstonPuckett.PipeExtensions 1.0.0 The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved

.NET Standard 2.0
There is a newer version of this package available.
See the version list below for details.
Install-Package WinstonPuckett.PipeExtensions -Version 1.0.0
dotnet add package WinstonPuckett.PipeExtensions --version 1.0.0
<PackageReference Include="WinstonPuckett.PipeExtensions" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WinstonPuckett.PipeExtensions --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WinstonPuckett.PipeExtensions, 1.0.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 WinstonPuckett.PipeExtensions as a Cake Addin
#addin nuget:?package=WinstonPuckett.PipeExtensions&version=1.0.0

// Install WinstonPuckett.PipeExtensions as a Cake Tool
#tool nuget:?package=WinstonPuckett.PipeExtensions&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Create an object(s) to operate on.

You need some form of starting object to pipe. This can be any class. For our example, we'll just create an Input object with an Id and an Output model with a Name.


public class Input
    public int Id { get; set; }
public class Output
    public string Name { get; set; }

Create methods which takes the object as an input.

Now that we have an object, we

public Input Validate(Input input)
   if (input < 0)
         throw new Exception("Id cannot be less than 0.");

    return input

public Output Transform(Input input)
    // In the real world, you would do something meaningful.
    return new Output()
        Name = $"My name is input.Id"

public void Submit(Output output)
    // In the real world, you would submit to a database or something.

Call .Pipe on the input and work through the user flow.

Now that we have data and methods to operate on that data, we can string this together into a "meaningful" user flow.

public void ExecuteUserFlow(Input input)

Extra information

If you want to learn about how to use async methods with pipe extensions or why PipeExtensions was created, visit the page on GitHub.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.0 1,028 6/11/2021
1.2.0 167 6/11/2021
1.1.0 137 5/28/2021
1.0.0 116 5/14/2021

Add all pipe operations and tests.