Advanced Search
Search Results
6 total results found
Left outer join
from leftTable in context.leftTable join rightTable in context.rightTable on leftTable.FKRightTable equals rightTable.Id into rightTableJoin from joinedRightTable in rightTableJoin.DefaultIfEmpty() select new { LeftData = leftTable.data, RightData = joine...
List iteration using span
var list = new List<int>(); foreach(var item in CollectionsMarshal.AsSpan(list)) { } Only usable if the collection is not changed during iteration (read only)
AsyncHelper
public static class AsyncHelper { private static readonly TaskFactory _myTaskFactory = new TaskFactory(CancellationToken.None, TaskCreationOptions.None, TaskContinuat...
Load Assembly Dynamically
In order to Copy NuGet dependecies to the output folder add this to classlibrary.csproj: <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> Set the Output directory with <BaseOutputPath>$(SolutionDir)AppName\bin</BaseOutputPath> To load Assemb...
Build project with SourceGenerator on linux
Add Microsoft.Net.Compilers.Toolset package to the project that references the source generator.
Async Parallel
static Task ParallelForEachAsync<T> (IEnumerable<T> source, int degreeofParallelization, Func<T, Task> body) { async Task AwaitPartition(IEnumerator<T> partition) {...