├── .gitattributes
├── .github
├── FUNDING.yml
└── ISSUE_TEMPLATE.md
├── .gitignore
├── LICENSE
├── README.md
├── dapper-plus-sponsor.png
├── entity-framework-extensions-sponsor.png
└── src
├── Z.Linq.Async.NetStandard20
└── Z.Linq.Async.NetStandard20.csproj
├── Z.Linq.Async.Shared
├── EnumerableAsync
│ ├── AsyncEnumerable.cs
│ ├── AsyncEnumerable`.cs
│ ├── AsyncEnumerator.cs
│ ├── AsyncEnumerator`.cs
│ ├── AsyncOrderedEnumerable`.cs
│ ├── AsyncWhereEnumerable`.cs
│ ├── EnumerableTask
│ │ └── Deferred_EnumerableTask
│ │ │ └── IEnumerable`
│ │ │ ├── OrderByCompletion.cs
│ │ │ └── SelectResult.cs
│ ├── LINQ
│ │ ├── Deferred_Enumerable
│ │ │ ├── IEnumerable
│ │ │ │ ├── CastAsync.cs
│ │ │ │ └── OfTypeAsync.cs
│ │ │ ├── IEnumerable`
│ │ │ │ ├── AsEnumerableAsync.cs
│ │ │ │ ├── ConcatAsync.cs
│ │ │ │ ├── DefaultIfEmptyAsync.cs
│ │ │ │ ├── DistinctAsync.cs
│ │ │ │ ├── ExceptAsync.cs
│ │ │ │ ├── GroupByAsync.cs
│ │ │ │ ├── GroupJoinAsync.cs
│ │ │ │ ├── IntersectAsync.cs
│ │ │ │ ├── JoinAsync.cs
│ │ │ │ ├── OrderByAsync.cs
│ │ │ │ ├── OrderByDescendingAsync.cs
│ │ │ │ ├── ReverseAsync.cs
│ │ │ │ ├── SelectAsync.cs
│ │ │ │ ├── SelectManyAsync.cs
│ │ │ │ ├── SkipAsync.cs
│ │ │ │ ├── SkipWhileAsync.cs
│ │ │ │ ├── TakeAsync.cs
│ │ │ │ ├── TakeWhileAsync.cs
│ │ │ │ ├── UnionAsync.cs
│ │ │ │ ├── WhereAsync.cs
│ │ │ │ └── ZipAsync.cs
│ │ │ └── IOrderedEnumerable`
│ │ │ │ ├── ThenByAsync.cs
│ │ │ │ └── ThenByDescendingAsync.cs
│ │ ├── Deferred_Task
│ │ │ ├── Array
│ │ │ │ ├── AsEnumerable.cs
│ │ │ │ ├── Cast.cs
│ │ │ │ ├── Concat.cs
│ │ │ │ ├── DefaultIfEmpty.cs
│ │ │ │ ├── Distinct.cs
│ │ │ │ ├── Except.cs
│ │ │ │ ├── GroupBy.cs
│ │ │ │ ├── GroupJoin.cs
│ │ │ │ ├── Intersect.cs
│ │ │ │ ├── Join.cs
│ │ │ │ ├── OfType.cs
│ │ │ │ ├── OrderBy.cs
│ │ │ │ ├── OrderByDescending.cs
│ │ │ │ ├── Reverse.cs
│ │ │ │ ├── Select.cs
│ │ │ │ ├── SelectMany.cs
│ │ │ │ ├── Skip.cs
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ ├── Take.cs
│ │ │ │ ├── TakeWhile.cs
│ │ │ │ ├── Union.cs
│ │ │ │ ├── Where.cs
│ │ │ │ └── Zip.cs
│ │ │ ├── AsyncWhereEnumerable`
│ │ │ │ ├── AsEnumerable.cs
│ │ │ │ ├── Cast.cs
│ │ │ │ ├── Concat.cs
│ │ │ │ ├── DefaultIfEmpty.cs
│ │ │ │ ├── Distinct.cs
│ │ │ │ ├── Except.cs
│ │ │ │ ├── GroupBy.cs
│ │ │ │ ├── GroupJoin.cs
│ │ │ │ ├── Intersect.cs
│ │ │ │ ├── Join.cs
│ │ │ │ ├── OfType.cs
│ │ │ │ ├── OrderBy.cs
│ │ │ │ ├── OrderByDescending.cs
│ │ │ │ ├── Reverse.cs
│ │ │ │ ├── Select.cs
│ │ │ │ ├── SelectMany.cs
│ │ │ │ ├── Skip.cs
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ ├── Take.cs
│ │ │ │ ├── TakeWhile.cs
│ │ │ │ ├── Union.cs
│ │ │ │ ├── Where.cs
│ │ │ │ └── Zip.cs
│ │ │ ├── Collection`
│ │ │ │ └── AsEnumerable.cs
│ │ │ ├── Dictionary`2
│ │ │ │ └── AsEnumerable.cs
│ │ │ ├── ICollection`
│ │ │ │ └── AsEnumerable.cs
│ │ │ ├── IDictionary`2
│ │ │ │ └── AsEnumerable.cs
│ │ │ ├── IEnumerable
│ │ │ │ ├── Cast.cs
│ │ │ │ └── OfType.cs
│ │ │ ├── IEnumerable`
│ │ │ │ ├── AsEnumerable.cs
│ │ │ │ ├── Concat.cs
│ │ │ │ ├── DefaultIfEmpty.cs
│ │ │ │ ├── Distinct.cs
│ │ │ │ ├── Except.cs
│ │ │ │ ├── GroupBy.cs
│ │ │ │ ├── GroupJoin.cs
│ │ │ │ ├── Intersect.cs
│ │ │ │ ├── Join.cs
│ │ │ │ ├── OrderBy.cs
│ │ │ │ ├── OrderByDescending.cs
│ │ │ │ ├── Reverse.cs
│ │ │ │ ├── Select.cs
│ │ │ │ ├── SelectMany.cs
│ │ │ │ ├── Skip.cs
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ ├── Take.cs
│ │ │ │ ├── TakeWhile.cs
│ │ │ │ ├── ThenBy.cs
│ │ │ │ ├── ThenByDescending.cs
│ │ │ │ ├── Union.cs
│ │ │ │ ├── Where.cs
│ │ │ │ └── Zip.cs
│ │ │ ├── IList`
│ │ │ │ └── AsEnumerable.cs
│ │ │ ├── ILookup`2
│ │ │ │ └── AsEnumerable.cs
│ │ │ ├── IOrderedEnumerable`
│ │ │ │ ├── AsEnumerable.cs
│ │ │ │ ├── Cast.cs
│ │ │ │ ├── Concat.cs
│ │ │ │ ├── DefaultIfEmpty.cs
│ │ │ │ ├── Distinct.cs
│ │ │ │ ├── Except.cs
│ │ │ │ ├── GroupBy.cs
│ │ │ │ ├── GroupJoin.cs
│ │ │ │ ├── Intersect.cs
│ │ │ │ ├── Join.cs
│ │ │ │ ├── OfType.cs
│ │ │ │ ├── OrderBy.cs
│ │ │ │ ├── OrderByDescending.cs
│ │ │ │ ├── Reverse.cs
│ │ │ │ ├── Select.cs
│ │ │ │ ├── SelectMany.cs
│ │ │ │ ├── Skip.cs
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ ├── Take.cs
│ │ │ │ ├── TakeWhile.cs
│ │ │ │ ├── Union.cs
│ │ │ │ ├── Where.cs
│ │ │ │ └── Zip.cs
│ │ │ ├── IReadOnlyCollection`
│ │ │ │ └── AsEnumerable.cs
│ │ │ ├── IReadOnlyDictionary`2
│ │ │ │ └── AsEnumerable.cs
│ │ │ ├── IReadOnlyList`
│ │ │ │ └── AsEnumerable.cs
│ │ │ ├── List`
│ │ │ │ ├── AsEnumerable.cs
│ │ │ │ ├── Cast.cs
│ │ │ │ ├── Concat.cs
│ │ │ │ ├── DefaultIfEmpty.cs
│ │ │ │ ├── Distinct.cs
│ │ │ │ ├── Except.cs
│ │ │ │ ├── GroupBy.cs
│ │ │ │ ├── GroupJoin.cs
│ │ │ │ ├── Intersect.cs
│ │ │ │ ├── Join.cs
│ │ │ │ ├── OfType.cs
│ │ │ │ ├── OrderBy.cs
│ │ │ │ ├── OrderByDescending.cs
│ │ │ │ ├── Reverse.cs
│ │ │ │ ├── Select.cs
│ │ │ │ ├── SelectMany.cs
│ │ │ │ ├── Skip.cs
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ ├── Take.cs
│ │ │ │ ├── TakeWhile.cs
│ │ │ │ ├── Union.cs
│ │ │ │ ├── Where.cs
│ │ │ │ └── Zip.cs
│ │ │ ├── Lookup`2
│ │ │ │ └── AsEnumerable.cs
│ │ │ └── ReadOnlyCollection`
│ │ │ │ └── AsEnumerable.cs
│ │ ├── Immediate_Enumerable
│ │ │ └── IEnumerable`
│ │ │ │ ├── AggregateAsync.cs
│ │ │ │ ├── AllAsync.cs
│ │ │ │ ├── AnyAsync.cs
│ │ │ │ ├── AverageAsync.cs
│ │ │ │ ├── ContainsAsync.cs
│ │ │ │ ├── CountAsync.cs
│ │ │ │ ├── ElementAtAsync.cs
│ │ │ │ ├── ElementAtOrDefaultAsync.cs
│ │ │ │ ├── FirstAsync.cs
│ │ │ │ ├── FirstOrDefaultAsync.cs
│ │ │ │ ├── LastAsync.cs
│ │ │ │ ├── LastOrDefaultAsync.cs
│ │ │ │ ├── LongCountAsync.cs
│ │ │ │ ├── MaxAsync.cs
│ │ │ │ ├── MinAsync.cs
│ │ │ │ ├── SequenceEqualAsync.cs
│ │ │ │ ├── SingleAsync.cs
│ │ │ │ ├── SingleOrDefaultAsync.cs
│ │ │ │ ├── SumAsync.cs
│ │ │ │ ├── ToArrayAsync.cs
│ │ │ │ ├── ToDictionaryAsync.cs
│ │ │ │ ├── ToListAsync.cs
│ │ │ │ └── ToLookupAsync.cs
│ │ └── Immediate_Task
│ │ │ ├── Array
│ │ │ ├── Aggregate.cs
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Average.cs
│ │ │ ├── Contains.cs
│ │ │ ├── Count.cs
│ │ │ ├── ElementAt.cs
│ │ │ ├── ElementAtOrDefault.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Max.cs
│ │ │ ├── Min.cs
│ │ │ ├── SequenceEqual.cs
│ │ │ ├── Single.cs
│ │ │ ├── SingleOrDefault.cs
│ │ │ ├── Sum.cs
│ │ │ ├── ToArray.cs
│ │ │ ├── ToDictionary.cs
│ │ │ ├── ToList.cs
│ │ │ └── ToLookup.cs
│ │ │ ├── AsyncWhereEnumerable`
│ │ │ ├── Aggregate.cs
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Average.cs
│ │ │ ├── Contains.cs
│ │ │ ├── Count.cs
│ │ │ ├── ElementAt.cs
│ │ │ ├── ElementAtOrDefault.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Max.cs
│ │ │ ├── Min.cs
│ │ │ ├── SequenceEqual.cs
│ │ │ ├── Single.cs
│ │ │ ├── SingleOrDefault.cs
│ │ │ ├── Sum.cs
│ │ │ ├── ToArray.cs
│ │ │ ├── ToDictionary.cs
│ │ │ ├── ToList.cs
│ │ │ └── ToLookup.cs
│ │ │ ├── IEnumerable`
│ │ │ ├── Aggregate.cs
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Average.cs
│ │ │ ├── Contains.cs
│ │ │ ├── Count.cs
│ │ │ ├── ElementAt.cs
│ │ │ ├── ElementAtOrDefault.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Max.cs
│ │ │ ├── Min.cs
│ │ │ ├── SequenceEqual.cs
│ │ │ ├── Single.cs
│ │ │ ├── SingleOrDefault.cs
│ │ │ ├── Sum.cs
│ │ │ ├── ToArray.cs
│ │ │ ├── ToDictionary.cs
│ │ │ ├── ToList.cs
│ │ │ └── ToLookup.cs
│ │ │ ├── IOrderedEnumerable`
│ │ │ ├── Aggregate.cs
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Average.cs
│ │ │ ├── Contains.cs
│ │ │ ├── Count.cs
│ │ │ ├── ElementAt.cs
│ │ │ ├── ElementAtOrDefault.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Max.cs
│ │ │ ├── Min.cs
│ │ │ ├── SequenceEqual.cs
│ │ │ ├── Single.cs
│ │ │ ├── SingleOrDefault.cs
│ │ │ ├── Sum.cs
│ │ │ ├── ToArray.cs
│ │ │ ├── ToDictionary.cs
│ │ │ ├── ToList.cs
│ │ │ └── ToLookup.cs
│ │ │ └── List`
│ │ │ ├── Aggregate.cs
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Average.cs
│ │ │ ├── Contains.cs
│ │ │ ├── Count.cs
│ │ │ ├── ElementAt.cs
│ │ │ ├── ElementAtOrDefault.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Max.cs
│ │ │ ├── Min.cs
│ │ │ ├── SequenceEqual.cs
│ │ │ ├── Single.cs
│ │ │ ├── SingleOrDefault.cs
│ │ │ ├── Sum.cs
│ │ │ ├── ToArray.cs
│ │ │ ├── ToDictionary.cs
│ │ │ ├── ToList.cs
│ │ │ └── ToLookup.cs
│ ├── PredicateAsync
│ │ ├── Deferred_Enumerable_AsyncFunc
│ │ │ └── IEnumerable`
│ │ │ │ ├── SkipWhileAsync.cs
│ │ │ │ └── WhereAsync.cs
│ │ ├── Deferred_Task_AsyncFunc
│ │ │ ├── Array
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ └── Where.cs
│ │ │ ├── AsyncWhereEnumerable`
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ └── Where.cs
│ │ │ ├── IEnumerable`
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ └── Where.cs
│ │ │ ├── IOrderedEnumerable`
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ └── Where.cs
│ │ │ └── List`
│ │ │ │ ├── SkipWhile.cs
│ │ │ │ └── Where.cs
│ │ ├── Immediate_Enumerable_AsyncFunc
│ │ │ └── IEnumerable`
│ │ │ │ ├── AllAsync.cs
│ │ │ │ ├── AnyAsync.cs
│ │ │ │ ├── CountAsync.cs
│ │ │ │ ├── FirstAsync.cs
│ │ │ │ ├── FirstOrDefaultAsync.cs
│ │ │ │ ├── LastAsync.cs
│ │ │ │ ├── LastOrDefaultAsync.cs
│ │ │ │ ├── LongCountAsync.cs
│ │ │ │ ├── SingleAsync.cs
│ │ │ │ └── SingleOrDefaultAsync.cs
│ │ └── Immediate_Task_AsyncFunc
│ │ │ ├── Array
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Count.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Single.cs
│ │ │ └── SingleOrDefault.cs
│ │ │ ├── IEnumerable`
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Count.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Single.cs
│ │ │ └── SingleOrDefault.cs
│ │ │ ├── IOrderedEnumerable`
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Count.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Single.cs
│ │ │ └── SingleOrDefault.cs
│ │ │ ├── List`
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Count.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Single.cs
│ │ │ └── SingleOrDefault.cs
│ │ │ └── `AsyncWhereEnumerable
│ │ │ ├── All.cs
│ │ │ ├── Any.cs
│ │ │ ├── Count.cs
│ │ │ ├── First.cs
│ │ │ ├── FirstOrDefault.cs
│ │ │ ├── Last.cs
│ │ │ ├── LastOrDefault.cs
│ │ │ ├── LongCount.cs
│ │ │ ├── Single.cs
│ │ │ └── SingleOrDefault.cs
│ ├── TaskFactory
│ │ ├── Array
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── AsyncWhereEnumerable`
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── Collection`
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── Dictionary`2
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── FromEnumerableAsync.cs
│ │ ├── ICollection`
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── IDictionary`2
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── IEnumerable
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── IEnumerable`
│ │ │ ├── FromEnumerable.cs
│ │ │ ├── FromTaskEnumerable.cs
│ │ │ ├── FromWhereEnumerable.cs
│ │ │ └── FromWhereTaskEnumerable.cs
│ │ ├── IList`
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── ILookup`2
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── IOrdoredEnumerable`
│ │ │ ├── FromEnumerable.cs
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── IReadOnlyCollection`
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── IReadOnlyDictionary`2
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── IReadOnlyList`
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── List
│ │ │ └── FromTaskEnumerable.cs
│ │ ├── Lookup`2
│ │ │ └── FromTaskEnumerable.cs
│ │ └── ReadOnlyCollection`
│ │ │ └── FromTaskEnumerable.cs
│ └── WhereAsyncEnumerable`
│ │ ├── OrderByPredicateCompletion.cs
│ │ └── StartPredicateConcurrently.cs
├── LinqAsyncManager.cs
├── Z.Linq.Async.Shared.projitems
└── Z.Linq.Async.Shared.shproj
├── Z.Linq.Async.sln
├── Z.Linq.Async
├── Properties
│ └── AssemblyInfo.cs
├── Z.Linq.Async.csproj
└── Z.Linq.Async.csproj.vspscc
├── lab
└── Z.Lab.LinqAsync.NetCore
│ ├── Program.cs
│ ├── Z.Lab.LinqAsync.NetCore.csproj
│ └── _Model
│ ├── TestEnumerable.cs
│ ├── TestEnumerableAsync.cs
│ ├── TestEnumerator.cs
│ ├── TestEnumeratorAsync.cs
│ ├── TestPredicate.cs
│ └── TestPredicateAsync.cs
└── test
└── Z.Test.Linq.Async
├── ExceptionHandling.cs
├── ExceptionHandling
├── PredicateAsyncConcurrentlyError.cs
├── PredicateAsyncConcurrently_Enumerable_PredicateAsyncError.cs
├── PredicateAsyncConcurrently_ToList_PredicateAsyncError.cs
├── PredicateAsyncError.cs
├── PredicateAsync_Enumerable_PredicateAsyncError.cs
├── PredicateAsync_ToList_PredicateAsyncError.cs
├── PredicateError.cs
├── Predicate_Enumerable_PredicateError.cs
├── Predicate_ToList_PredicateError.cs
└── ToListError.cs
├── OrderByCompletion.cs
├── OrderByCompletion
└── IsOrdered.cs
├── OrderByPredicateCompletion.cs
├── OrderByPredicateCompletion
├── IsFalse_Default.cs
├── IsTrue.cs
├── Manager_IsFalse.cs
├── Manager_IsFalse_Order_IsFalse.cs
├── Manager_IsFalse_Order_IsTrue.cs
├── Manager_IsTrue.cs
├── Manager_IsTrue_Order_IsFalse.cs
└── Manager_IsTrue_Order_IsTrue.cs
├── PredicateAsync_StartConcurrentlyAndOrderByCompletion.cs
├── PredicateAsync_StartConcurrentlyAndOrderByCompletion
├── IsFalse_IsFalse_Default.cs
├── IsFalse_IsTrue.cs
├── IsTrue_IsFalse.cs
└── IsTrue_IsTrue.cs
├── Properties
└── AssemblyInfo.cs
├── SelectResult.cs
├── SelectResult
├── IsOrdered.cs
└── OrderByCompletion_IsOrdered.cs
├── StartPredicateConcurrently.cs
├── StartPredicateConcurrently
├── IsFalse_Default.cs
├── IsTrue.cs
├── Manager_IsFalse.cs
├── Manager_IsFalse_Order_IsFalse.cs
├── Manager_IsFalse_Order_IsTrue.cs
├── Manager_IsTrue.cs
├── Manager_IsTrue_Order_IsFalse.cs
└── Manager_IsTrue_Order_IsTrue.cs
├── Z.Test.Linq.Async.csproj
├── Z.Test.Linq.Async.csproj.vspscc
└── _Model
├── TestEnumerable.cs
├── TestEnumerableAsync.cs
├── TestEnumerator.cs
├── TestEnumeratorAsync.cs
├── TestPredicate.cs
└── TestPredicateAsync.cs
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
4 | # Custom for Visual Studio
5 | *.cs diff=csharp
6 |
7 | # Standard to msysgit
8 | *.doc diff=astextplain
9 | *.DOC diff=astextplain
10 | *.docx diff=astextplain
11 | *.DOCX diff=astextplain
12 | *.dot diff=astextplain
13 | *.DOT diff=astextplain
14 | *.pdf diff=astextplain
15 | *.PDF diff=astextplain
16 | *.rtf diff=astextplain
17 | *.RTF diff=astextplain
18 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 |
2 | github: [zzzprojects, Linq-Async]
3 | custom: ["https://zzzprojects.com/contribute"]
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | Here is what to include in your request to make sure we implement a solution as quickly as possible.
2 |
3 | ## 1. Description
4 | Describe the issue or propose a feature.
5 |
6 | ## 2. Exception
7 | If you are seeing an exception, include the full exception details (message and stack trace).
8 |
9 | ```
10 | Exception message:
11 | Stack trace:
12 | ```
13 |
14 | ## 3. Fiddle or Project
15 | If you are able,
16 |
17 | Provide a Fiddle that reproduce the issue: https://dotnetfiddle.net/25Vjsn
18 |
19 | Or provide a project/solution that we can run to reproduce the issue.
20 | - Make sure the project compile
21 | - Make sure to provide only the code that is required to reproduce the issue, not the whole project
22 | - You can send private code here: info@zzzprojects.com
23 |
24 | Otherwise, make sure to include as much information as possible to help our team to reproduce the issue.
25 |
26 | ## 4. Any further technical details
27 | Add any relevant detail that can help us.
28 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | [Bb]in/
2 | [Oo]bj/
3 | [Pp]ackages/
4 | Z.Lab/
5 | *.suo
6 | *.user
7 | *.userprefs
8 | _ReSharper.*
9 | *.ReSharper.user
10 | *.resharper.user
11 | *.pfx
12 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright © ZZZ Projects Inc. 2014 - 2016
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/dapper-plus-sponsor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zzzprojects/LINQ-Async/59a43e460cffdc100ea246cec0b894146af8df5b/dapper-plus-sponsor.png
--------------------------------------------------------------------------------
/entity-framework-extensions-sponsor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zzzprojects/LINQ-Async/59a43e460cffdc100ea246cec0b894146af8df5b/entity-framework-extensions-sponsor.png
--------------------------------------------------------------------------------
/src/Z.Linq.Async.NetStandard20/Z.Linq.Async.NetStandard20.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 | Z.Linq.Async
6 | 1.0.3
7 | ZZZ Projects
8 | Z.Linq.Async
9 | C# LINQ Async extension methods library for async/await task.
10 | ZZZ Projects
11 | https://github.com/zzzprojects/LINQ-Async/blob/master/LICENSE
12 | true
13 | zzzproject.pfx
14 | Z.Linq.Async
15 | Z.Linq.Async
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/EnumerableTask/Deferred_EnumerableTask/IEnumerable`/SelectResult.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> SelectResult(this IEnumerable> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.FromResult(source.Select(x => x.Result));
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Enumerable/IEnumerable/CastAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> CastAsync(this IEnumerable source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Cast, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Enumerable/IEnumerable/OfTypeAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> OfTypeAsync(this IEnumerable source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.OfType, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Enumerable/IEnumerable`/AsEnumerableAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> AsEnumerableAsync(this IEnumerable source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Enumerable/IEnumerable`/ConcatAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> ConcatAsync(this IEnumerable first, IEnumerable second, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromEnumerable(first, second, Enumerable.Concat, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Enumerable/IEnumerable`/ReverseAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> ReverseAsync(this IEnumerable source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromEnumerable(source, Enumerable.Reverse, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Enumerable/IEnumerable`/SkipAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> SkipAsync(this IEnumerable source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromEnumerable(source, count, Enumerable.Skip, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Enumerable/IEnumerable`/TakeAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> TakeAsync(this IEnumerable source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromEnumerable(source, count, Enumerable.Take, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Enumerable/IEnumerable`/ZipAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> ZipAsync(this IEnumerable first, IEnumerable second, Func resultSelector, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromEnumerable(first, second, resultSelector, Enumerable.Zip, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Array/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> AsEnumerable(this Task source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Array/Cast.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Cast(this Task source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Cast, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Array/Concat.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Concat(this Task first, IEnumerable second, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(first, second, Enumerable.Concat, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Array/OfType.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> OfType(this Task source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.OfType, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Array/Reverse.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Reverse(this Task source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Reverse, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Array/Skip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Skip(this Task source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Skip, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Array/Take.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Take(this Task source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Take, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Array/Zip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Zip(this Task first, IEnumerable second, Func resultSelector, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(first, second, resultSelector, Enumerable.Zip, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/AsyncWhereEnumerable`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 | using Z.Linq.Async;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/AsyncWhereEnumerable`/Cast.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 | using Z.Linq.Async;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Cast(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Cast, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/AsyncWhereEnumerable`/Concat.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 | using Z.Linq.Async;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Concat(this Task> first, IEnumerable second, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(first, second, Enumerable.Concat, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/AsyncWhereEnumerable`/OfType.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 | using Z.Linq.Async;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> OfType(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.OfType, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/AsyncWhereEnumerable`/Reverse.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 | using Z.Linq.Async;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Reverse(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Reverse, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/AsyncWhereEnumerable`/Skip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 | using Z.Linq.Async;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Skip(this Task> source, int count, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Skip, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/AsyncWhereEnumerable`/Take.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 | using Z.Linq.Async;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Take(this Task> source, int count, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Take, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/AsyncWhereEnumerable`/Zip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 | using Z.Linq.Async;
14 |
15 | namespace Z.Linq
16 | {
17 | public static partial class EnumerableAsync
18 | {
19 | public static Task> Zip(this Task> first, IEnumerable second, Func resultSelector, CancellationToken cancellationToken = default(CancellationToken))
20 | {
21 | return Task.Factory.FromTaskEnumerable(first, second, resultSelector, Enumerable.Zip, cancellationToken);
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Collection`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Collections.ObjectModel;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Dictionary`2/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task>> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/ICollection`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IDictionary`2/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task>> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IEnumerable/Cast.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Cast(this Task source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Cast, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IEnumerable/OfType.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> OfType(this Task source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.OfType, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IEnumerable`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Threading;
10 | using System.Threading.Tasks;
11 |
12 | namespace Z.Linq
13 | {
14 | public static partial class EnumerableAsync
15 | {
16 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
17 | {
18 | return source;
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IEnumerable`/Concat.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Concat(this Task> first, IEnumerable second, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(first, second, Enumerable.Concat, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IEnumerable`/Reverse.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Reverse(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Reverse, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IEnumerable`/Skip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Skip(this Task> source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Skip, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IEnumerable`/Take.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Take(this Task> source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Take, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IEnumerable`/Zip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Zip(this Task> first, IEnumerable second, Func resultSelector, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(first, second, resultSelector, Enumerable.Zip, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IList`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/ILookup`2/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task>> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IOrderedEnumerable`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IOrderedEnumerable`/Cast.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Cast(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Cast, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IOrderedEnumerable`/Concat.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Concat(this Task> first, IEnumerable second, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(first, second, Enumerable.Concat, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IOrderedEnumerable`/OfType.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> OfType(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.OfType, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IOrderedEnumerable`/Reverse.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Reverse(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Reverse, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IOrderedEnumerable`/Skip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Skip(this Task> source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Skip, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IOrderedEnumerable`/Take.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Take(this Task> source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Take, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IOrderedEnumerable`/Zip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Zip(this Task> first, IEnumerable second, Func resultSelector, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(first, second, resultSelector, Enumerable.Zip, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IReadOnlyCollection`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IReadOnlyDictionary`2/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task>> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/IReadOnlyList`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/List`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/List`/Cast.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Cast(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Cast, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/List`/Concat.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Concat(this Task> first, IEnumerable second, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(first, second, Enumerable.Concat, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/List`/OfType.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> OfType(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.OfType, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/List`/Reverse.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Reverse(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Reverse, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/List`/Skip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Skip(this Task> source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Skip, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/List`/Take.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> Take(this Task> source, int count, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, count, Enumerable.Take, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/List`/Zip.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> Zip(this Task> first, IEnumerable second, Func resultSelector, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(first, second, resultSelector, Enumerable.Zip, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/Lookup`2/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task>> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Deferred_Task/ReadOnlyCollection`/AsEnumerable.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Collections.ObjectModel;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task> AsEnumerable(this Task> source, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromTaskEnumerable(source, Enumerable.AsEnumerable, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Enumerable/IEnumerable`/AllAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Collections.Generic;
10 | using System.Linq;
11 | using System.Threading;
12 | using System.Threading.Tasks;
13 |
14 | namespace Z.Linq
15 | {
16 | public static partial class EnumerableAsync
17 | {
18 | public static Task AllAsync(this IEnumerable source, Func predicate, CancellationToken cancellationToken = default(CancellationToken))
19 | {
20 | return Task.Factory.FromEnumerable(source, predicate, Enumerable.All, cancellationToken);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Enumerable/IEnumerable`/ElementAtAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task ElementAtAsync(this IEnumerable source, int index, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromEnumerable(source, index, Enumerable.ElementAt, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Enumerable/IEnumerable`/ElementAtOrDefaultAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task ElementAtOrDefaultAsync(this IEnumerable source, int index, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromEnumerable(source, index, Enumerable.ElementAtOrDefault, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Enumerable/IEnumerable`/ToArrayAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task ToArrayAsync(this IEnumerable source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromEnumerable(source, Enumerable.ToArray, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Enumerable/IEnumerable`/ToListAsync.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Collections.Generic;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task> ToListAsync(this IEnumerable source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromEnumerable(source, Enumerable.ToList, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Task/Array/All.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task All(this Task source, Func predicate, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, predicate, Enumerable.All, cancellationToken);
20 | }
21 | }
22 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Task/Array/Any.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task Any(this Task source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Any, cancellationToken);
20 | }
21 |
22 | public static Task Any(this Task source, Func predicate, CancellationToken cancellationToken = default(CancellationToken))
23 | {
24 | return Task.Factory.FromTaskEnumerable(source, predicate, Enumerable.Any, cancellationToken);
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Task/Array/Count.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task Count(this Task source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.Count, cancellationToken);
20 | }
21 |
22 | public static Task Count(this Task source, Func predicate, CancellationToken cancellationToken = default(CancellationToken))
23 | {
24 | return Task.Factory.FromTaskEnumerable(source, predicate, Enumerable.Count, cancellationToken);
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Task/Array/ElementAt.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Linq;
9 | using System.Threading;
10 | using System.Threading.Tasks;
11 |
12 | namespace Z.Linq
13 | {
14 | public static partial class EnumerableAsync
15 | {
16 | public static Task ElementAt(this Task source, int index, CancellationToken cancellationToken = default(CancellationToken))
17 | {
18 | return Task.Factory.FromTaskEnumerable(source, index, Enumerable.ElementAt, cancellationToken);
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Task/Array/ElementAtOrDefault.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System.Linq;
9 | using System.Threading;
10 | using System.Threading.Tasks;
11 |
12 | namespace Z.Linq
13 | {
14 | public static partial class EnumerableAsync
15 | {
16 | public static Task ElementAtOrDefault(this Task source, int index, CancellationToken cancellationToken = default(CancellationToken))
17 | {
18 | return Task.Factory.FromTaskEnumerable(source, index, Enumerable.ElementAtOrDefault, cancellationToken);
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/src/Z.Linq.Async.Shared/EnumerableAsync/LINQ/Immediate_Task/Array/First.cs:
--------------------------------------------------------------------------------
1 | // Description: Async extension methods for LINQ (Language Integrated Query).
2 | // Website & Documentation: https://github.com/zzzprojects/LINQ-Async
3 | // Forum: https://github.com/zzzprojects/LINQ-Async/issues
4 | // License: http://www.zzzprojects.com/license-agreement/
5 | // More projects: http://www.zzzprojects.com/
6 | // Copyright (c) 2015 ZZZ Projects. All rights reserved.
7 |
8 | using System;
9 | using System.Linq;
10 | using System.Threading;
11 | using System.Threading.Tasks;
12 |
13 | namespace Z.Linq
14 | {
15 | public static partial class EnumerableAsync
16 | {
17 | public static Task First(this Task source, CancellationToken cancellationToken = default(CancellationToken))
18 | {
19 | return Task.Factory.FromTaskEnumerable(source, Enumerable.First, cancellationToken);
20 | }
21 |
22 | public static Task First(this Task source, Func