Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# HttpClient POST or PUT Json with content type application/json
- C# get results from Task.WhenAll
- Write to file from multiple threads async with C# and .NET Core
- Run tasks in parallel using .NET Core, C# and async coding
- Build .net core 6 projects with Azure Devops using yml files
- .NET API CORS: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header.NET API
Archive
Meta
Tag Archives: List
C# List Batch – Breaking an IEnumerable into batches with .NET
There are several ways of batching lists and enumerables with C#. Here are 3 ways: METHOD 1: USING MoreLINQ MoreLINQ is an extension package for LINQ that implements yet another set of useful LINQ expressions like Shuffle, Pad, and Batch. … Continue reading →
Posted in .net, .NET Core, c#, General .NET
|
Tagged Batch, Batches, Batching, Enumerator, IEnumerable, List, MoreLINQ
|
Leave a comment
C# Lists in Lists – Getting all inner values, or the unique inner values
Getting the inner value of a list inside a list can seem complicated in C#, but LINQ makes it easier. But first let’s make a list in a class, and then make a list of the class with the list … Continue reading →
C# Remove Duplicates from List with LINQ
C# LINQ do have a Distinct() method that works on simple types: For non-simple types, you have 2 options, but first lets make a non-simple type, a class: OPTION 1: IMPLEMENT AN EQUALITYCOMPARER The equalitycomparer is a class that is … Continue reading →
Sitecore List Manager – Add Contacts to EXM Lists
This is yet another post on the focal point of Sitecore 8: Contacts. The contact repository is a multi-usage storage of user information, from visitors (named and anonymous) to imported email addresses to be used in email campaigns. The Sitecore … Continue reading →