Dive into C#, Web, Cloud, Network and Security

category C#

Articles about C# .NET

How to create AES encryption 256 bit key in C#

Sticky Post

After explaining the concept and purpose of AES encryption in the previous article, this guide has for goal to give practical steps about how to create and use an AES encryption 256-bit key.

How to generate random numbers in C#

As a software developer, you will sometimes need to generate random numbers in your code. Computer programs generate random numbers by either leveraging the system hardware through the operating system or by calling a library exposing a Pseudo-Random Number Generator (PRNG).

C# readonly vs const

The readonly and const keywords are sometimes used interchangeably in C#, to declare immutable fields in a class or a structure. Even though we use them to achieve the same purpose, there are noticeable differences between these two keywords.

How to perform AES encryption in .NET

As a C# developer, you will notice that there are many classes available in .NET to perform AES encryption. In this article, we will talk about the recommended way to create a cryptographic object that implements the AES algorithm.

C# Convert string to int

In this article, we will quickly show 3 different ways to convert a string containing a numeric value to a 32-bit signed integer (Int32).

Floating-point numbers in C#

There are 3 built-in types that you can use to represent floating-point numbers: float, double and decimal. In this article, we will look at the specifics of each of these types.

Comparison of C# Equals vs ==

There are many ways to compare objects in C#. In this article, we will talk about the most common ones: the equality operator == and the Equals method.

C# Struct vs Class

There are 2 main categories of types in C#: value types and reference types. Structures and classes represent the main types of these 2 categories. In this article, we will look at the differences between a structure and class.

How to use HTTP/2 with HttpClient in .NET 6.0

Today, more than 65% of HTTP requests are done with the HTTP/2 standard. In this article, we will explore the different options available to configure HttpClient to use HTTP/2 standard in .NET 6.0.

How to manage HttpClient connections in .NET

The HttpClient class, introduced since .NET Framework 4.5, is probably one of the most used classes in the .NET platform. It’s important to know how to manage HttpClient connections in order to avoid sockets exhaustion and DNS issues.

« Older posts

© 2023 Siaka Baro

Up ↑