Skip to content

Commit 3152489

Browse files
authored
Create README.md
1 parent c321149 commit 3152489

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# DestructureExtensions
2+
3+
[![NuGet](https://img.shields.io/nuget/v/DestructureExtensions.svg)](https://www.nuget.org/packages/DestructureExtensions/)
4+
5+
Destructuring extension methods for awesome C#
6+
7+
# Quickstart
8+
9+
In C# 7.0:
10+
11+
```csharp
12+
using DestructureExtensions;
13+
14+
/*...*/
15+
var stringToSplit = "foo,bar,bam,baz";
16+
var (first, _, third, rest) = stringToSplit.Split(',');
17+
18+
// first == "foo"
19+
// third == "bam"
20+
// rest == IEnumerable<string> containing "baz"
21+
```

0 commit comments

Comments
 (0)