Latest Posts On Code Maze

Create Cryptographic Numbers With RandomNumberGenerator

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

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

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 Basic Authentication With HttpClient?

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...

Differences Between Any and Exists Methods in C#

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...

How to Hide an Endpoint in Swagger

How to Hide an Endpoint in Swagger

When developing APIs, it is common to come across scenarios where we need to hide an endpoint from the public. In this article, we will explore various methods to achieve this goal, focusing on the Swashbuckle library in an ASP.NET application. [sc name="github"...