-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55452bf
commit a494879
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## About | ||
|
||
The `System.Linq.AsyncEnumerable` library provides support for Language-Integrated Query (LINQ) over `IAsyncEnumerable<T>` sequences. | ||
|
||
## Key Features | ||
|
||
* Extension methods for performing operations on `IAsyncEnumerable<T>` sequences. | ||
|
||
## How to Use | ||
|
||
```C# | ||
using System; | ||
using System.IO; | ||
using System.Linq; | ||
|
||
static IAsyncEnumerable<City> DeserializeAndFilterData(Stream stream) | ||
{ | ||
IAsyncEnumerable<City> cities = JsonSerializer.DeserializeAsyncEnumerable<City>(stream); | ||
|
||
return from city in cities | ||
where city.Population > 10_000 | ||
orderby city.Name | ||
select city; | ||
} | ||
``` | ||
|
||
## Main Types | ||
|
||
The main type provided by this library is: | ||
|
||
* `System.Linq.AsyncEnumerable` | ||
|
||
## Additional Documentation | ||
|
||
* [Overview](https://learn.microsoft.com/dotnet/csharp/linq/) | ||
* [API documentation](https://learn.microsoft.com/dotnet/api/system.linq) | ||
|
||
## Feedback & Contributing | ||
|
||
`System.Linq.AsyncEnumerable` is released as open source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/dotnet/runtime). |