Home

C# Basic Algorithms And Data Structures

TslaJun 5, 202458 min read
C# Code Snippets Basic Algorithms And Data Structures

About In this post, we’ll look at some basic algorithms and data structures in C#.There are a lot of algorithms and data structures out there. Here I will show you…

ESP32 Web Server, Web Sockets And HTTP API Calls

TslaFeb 26, 202414 min read
ESP Web Server

About In this post, I’ll show you how to make API requests from the ESP32 or ESP8266, how to set up a web server on the ESP and use AJAX…

C# Covariance And Contravariance

TslaFeb 9, 20243 min read
C# Code Snippets Covariance And Contravariance

About In this code snippet, we’ll take a look at covariance and contravariance in C#.Covariance and contravariance enable implicit type conversion for arrays, delegates and generic interface type arguments.Covariance allows for a more derived type to be used where a less…

C# Image Classification With ML.NET

TslaFeb 3, 20244 min read
C# Code Snippets Image Classification With ML.NET

About In this code snippet, we’ll see how to do image classification in C# using the ML.NET machine learning framework.It provides a user friendly GUI for creating, training and deploying different…

GPU Acceleration For Your C# App With ILGPU

TslaJan 31, 202412 min read
C# Code Snippets GPU Acceleration For Your C# App With ILGPU

About In this code snippet, we’ll see how to use GPU acceleration in C# using the ILGPU library.ILGPU provides you with a fairly simple interface to run code on your GPU…

C# COM Objects, Interop with PInvoke And Type Marshalling

TslaJan 24, 202411 min read
C# Code Snippets COM Objects, Interop with PInvoke And Type Marshalling

About In this code snippet, we will take a look at COM objects, interop using PInvoke and type marshalling in C#. The Component Object Model or COM defines a binary interoperability standard that…

Controlling WS2812B LEDs With An ESP8266 and WLED

TslaJan 23, 20241 min read
wled web ui

About In this post, I will show you how to control WS2812B, WS2811 or SK6812 individually addressable LEDs with an ESP2866 or ESP32 by using WLED. With the WLED firmware,…

Blazor IdentityServer Error: “There was an error trying to log you in” Solution

TslaJan 16, 20241 min read
blazor logo

About I ran into this issue recently, so I thought I’d share the solution in case it helps someone else.I was contacted by a user saying they can’t log in…

C# Lambda Expressions

TslaJan 16, 20242 min read
C# Code Snippets Func Action Lambda

About In this code snippet, we will take a look at lambda expressions, Func<T> and Action<T> in C#.Func<T> is simply a more compact way of defining a delegate/function pointer while Action<T> is the exact same…

C# Unsafe code, Pointers, Stackalloc and Spans

TslaJan 15, 20247 min read
C# Code Snippets Unsfe code Pointers Stackalloc and Spans

About In this code snippet, we will take a look at unsafe code, pointers, stack allocation and spans in C#.C# has managed memory unlike for example C/C++. This means that you don’t…

Advertisment ad adsense adlogger