29 packages tagged with “foreach”
Introduces IAsyncEnumerable, IAsyncEnumerator, ForEachAsync(), and ParallelForEachAsync() GitHub: https://github.com/Dasync/AsyncEnumerable PROBLEM SPACE Helps to (a) create an element provider, where producing an element can take a lot of time due to dependency on other asynchronous events (e.g. wait handles, network streams), and (b) a consumer that processes those element as soon as they are ready without blocking the thread (the processing is scheduled on a worker thread instead). EXAMPLE using Dasync.Collections; static IAsyncEnumerable<int> ProduceAsyncNumbers(int start, int end) { return new AsyncEnumerable<int>(async yield => { // Just to show that ReturnAsync can be used multiple times await yield.ReturnAsync(start); for (int number = start + 1; number <= end; number++) await yield.ReturnAsync(number); // You can break the enumeration loop with the following call: yield.Break(); // This won't be executed due to the loop break above await yield.ReturnAsync(12345); }); } // Just to compare with synchronous version of enumerator static IEnumerable<int> ProduceNumbers(int start, int end) { yield return start; for (int number = start + 1; number <= end; number++) yield return number; yield break; yield return 12345; } static async Task ConsumeNumbersAsync() { var asyncEnumerableCollection = ProduceAsyncNumbers(start: 1, end: 10); await asyncEnumerableCollection.ForEachAsync(async number => { await Console.Out.WriteLineAsync($"{number}"); }); } // Just to compare with synchronous version of enumeration static void ConsumeNumbers() { var enumerableCollection = ProduceNumbers(start: 1, end: 10); foreach (var number in enumerableCollection) { Console.Out.WriteLine($"{number}"); } }
Collection of simple pieces of reusable code designed such that dependencies aren't forced upon consumers of its packages. Package is shipped as source code.
ILGPU Algorithms library for high-level GPU programming. Samples can be found in the GitHub repository: https://github.com/m4rs-mt/ILGPU/tree/master/Samples
A set of optimized extensions which integrate System.Range with foreach and LINQ.
Provides the range-foreach syntax for C# 9.0 or higher.
Helper methods for async collections processing. Add this package to your core library, so it would get the source code of this module without installing a binary dependency. Then proceed with using corresponding functionality from Atom.Util namespace, like if it was installed using binary assembly. Check out GitHub for more docs and usage examples.
Turn easy the execution of loops, for and batch command line programs
ILGPU Lightning library for high-level GPU programming. Samples can be found in the GitHub repository: https://github.com/m4rs-mt/ILGPU.Samples
Provides pagination and ordination to linq queries. Compatible with lazy load.
IEnumerable ForEach extension methods.
Extends the IEnumerable<T> interface to include a ForEach method
Some useful instruments. For me.
ForEach Platform Identity for Entity Framework
Inspired by Powershell, simple package that will remove the need to think of the name of some variables. Also some useful extension methods on IEnumerable type. Contains an Option<T> mondad Extensions on bool type IfTrue(doThis).Else(doThis) Check out the full project on GitHub https://github.com/spiri91/Pipe.Net
Provides filter, pagination and ordination to grids. Using Razor Views with only foreach statements. highly performative and easy to configure. Compatible with ORM like Entity Framework.
Additional Linq extensions
Array Foreach (array-foreach) binding library for Bridge.NET projects.
LINQ helper extensions for RepositoryKit. Adds support for Paginate, OrderByField, Chunk, and ForEach operations on IQueryable and IEnumerable.
Contains the set of extension methods for IEnumerable<T> and ICollection<T>
Extension methods that add parallel ForEach iterations to IEnumerable<T>, IAsyncEnumerable<T>, and Channel<T>. Process items concurrently with configurable limits, collect results, and control per-key concurrency.
Un package pour faire des boucles.
Unified algorithm support for indexed .NET collections.
Wrappers and extensions to the .NET collections and LINQ.
All of the Flyntax C# diagnostics and code fixes in one package.
LINQ-native Snowflake integration for DataLinq.NET. Write C#, run Snowflake — custom methods auto-translate to UDFs at runtime. Free developer tier (1,000 rows) included.
ExtendedVector utility - std::vector with all .NET's List features: ForEach, FindAll, and more! Increase your productivity and vector handling with just one header.
NList brings an enormous number of powerful, STL-like algorithms to the .NET platform for processing indexable collections. There is a handlebars.js-like text generator. It has a powerful IComparer builder. There is a DefaultDictionary class. There is a class to convert an object into a dictionary of its properties.
The NetExt.Utils package provides lightweight and efficient extensions for collections and common utilities in .NET. Designed to enhance developer productivity, these extensions simplify handling collections and validating input values.
Package Description