DestructureExtensions
Destructuring extension methods for awesome C#
Quickstart
In C# 7.0:
using DestructureExtensions;
/*...*/
var stringToSplit = "foo,bar,bam,baz";
var (first, _, third, rest) = stringToSplit.Split(',');
// first == "foo"
// third == "bam"
// rest == IEnumerable<string> containing "baz"Building
Ensure you have installed .NET Core
To build a local/development NuGet package, run the following:
dotnet restore
dotnet build
dotnet packThis will produce bin/Debug/DestructureExtensions.0.0.0.nupkg.
Code of Conduct
We are committed to fostering an open and welcoming environment. Please read our code of conduct before participating in or contributing to this project.
Contributing
We welcome contributions and collaboration on this project. Please read our contributor's guide to understand how best to work with us.
License and Authors
This software is made available by Daniel James under the MIT license.