https://github.com/hazzik/arraydeconstructors
ArrayDeconstructors is a source package which allows you to use C# 7 deconstruction syntax to deconstruct span into variables
https://github.com/hazzik/arraydeconstructors
c-sharp c-sharp-7 deconstructor tuple tuples
Last synced: 2 months ago
JSON representation
ArrayDeconstructors is a source package which allows you to use C# 7 deconstruction syntax to deconstruct span into variables
- Host: GitHub
- URL: https://github.com/hazzik/arraydeconstructors
- Owner: hazzik
- License: mit
- Created: 2017-07-23T23:46:43.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T09:13:25.000Z (over 2 years ago)
- Last Synced: 2025-02-28T15:11:31.968Z (3 months ago)
- Topics: c-sharp, c-sharp-7, deconstructor, tuple, tuples
- Language: Pascal
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/sponsors/hazzik).
## 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](https://nuget.org/packages/ArrayDeconstructors.Source/) using following command:
```
> Install-Package ArrayDeconstructors.Source
```