ArrayDeconstructors.Source 1.0.4

dotnet add package ArrayDeconstructors.Source --version 1.0.4
NuGet\Install-Package ArrayDeconstructors.Source -Version 1.0.4
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="ArrayDeconstructors.Source" Version="1.0.4">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ArrayDeconstructors.Source --version 1.0.4
#r "nuget: ArrayDeconstructors.Source, 1.0.4"
#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 ArrayDeconstructors.Source as a Cake Addin
#addin nuget:?package=ArrayDeconstructors.Source&version=1.0.4

// Install ArrayDeconstructors.Source as a Cake Tool
#tool nuget:?package=ArrayDeconstructors.Source&version=1.0.4

ArrayDeconstructors

ArrayDeconstructors is a source package which allows you to use new C# 7 deconstruction syntax to deconstruct array into variables:

int[] array = <...>;
var (a,b) = array;

Sponsorship

If you like the library please consider supporting my work.

Implementation notes

  • The decision has been made such that there are no safety checks on the deconstruction methods.
  • For the better user experience and performance reasons we do NOT return the array's tail.

Installation

You can install from NuGet using following command:

> Install-Package ArrayDeconstructors.Source
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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.0.4 2,143 10/12/2022
1.0.3 8,039 11/8/2017
1.0.1 1,214 7/23/2017