Create Cryptographic Numbers With RandomNumberGenerator
In this article, we'll explore how to generate random cryptographic numbers with RandomNumberGenerator API in C#, and why it is paramount in the context of cryptography. Let's learn what discriminated unions are and why this feature has been...
Using ML.NET CLI To Automate Model Training
As we continue our article series about ML.NET, we will look at the ML.NET Command Line Interface (CLI) tool. Like ML.NET Model Builder, the ML.NET CLI uses AutoML to produce machine learning models. Sending...
How to Use onchange Event with Select DropDown in Blazor
When we write applications, we want to know when a user changes the value in input fields and what the new value is. We get this information through change events available for HTML input-type elements. We can define an onchange event attribute on the input element to...
How to Use Moq to Return a Value That Was Passed Into a Method?
In this article, we are going to learn about mocking with the Moq framework for .NET. Specifically, we're going to learn how we can mock a method, which returns a value passed to it. The more complex the...
How to Use Basic Authentication With HttpClient?
In this article, we are going to discuss how to use basic authentication with HttpClient. While the topic may seem straightforward, there are a few different ways to solve this problem. We'll try and cover some of the main approaches, and hopefully, by the end, we...
Testing Using Testcontainers for .NET and Docker
In this article, we'll explore how to use the Testcontainers library for testing .NET applications using Docker. Let's get...
Differences Between Any and Exists Methods in C#
In this article, we will explore the differences between Any() and Exists() methods in C#. Although at first glance they might seem similar, they possess distinct characteristics and we use them in different scenarios in order to manipulate data collections. [sc...