Twitch MediatR with ASP.NET Core

Twitch Twitch is the leading streaming platform for video games and Co. Starting small, Twitch hosts monthly over 3.5 million streamers that can be w .....

Fast SQL-Insert with C# and SqlBulkCopy

In .NET, there is a very fast and easy way to pump a variety of entities into an SQL database: SqlBulkCopy public void BulkInsert<TEntity>(stri .....

Load an image into a byte-array with C#

This pretty simply snippet exports your Image into a byte-array. public static byte[] ToByteArray(this System.Drawing.Image image) { using(Memory .....

Download a file with .NET

The most current and currently recommended way to download .NET Framework, .NET Standard or .NET Core files from the Internet is the HttpClient class .....