C# Basic Algorithms And Data Structures
In this post, we’ll look at some basic algorithms and data structures in C#.
In this post, we’ll look at some basic algorithms and data structures in C#.
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 to send/receive data and how to establish a web socket connection for bi-directional data streaming. These examples can be used as basic starting templates for projects.
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.
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 kinds of machine learning models within Visual Studio. It makes it very quick and easy to add machine learning to your .NET projects.
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 from C#. For more information, you can check out the official documentation here. In this post, I will show you how to do some image processing by utilizing GPU acceleration if you want to see more examples(simpler or more complex ones) you can find them here.
In this code snippet, we will take a look at COM objects, interop using PInvoke and type marshalling in C#.
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, the LED strip can also very easily be added to home assistant.
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 and are getting the following error: “There was an error trying to log you in”. The app in question uses a Blazor WASM frontend and an ASP.NET Core backend that uses IdentityServer for user accounts.
In this code snippet, we will take a look at lambda expressions, Func
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 have to allocate or clear memory by yourself and in the case of .NET the CLR(common language runtime) takes care of memory allocation and garbage collection. This also means that in C# you can’t work with a pointer or allocate your variables on the stack which is common practice in C/C++.