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

Tag Fundamental

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.

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 the C# init keyword

Init-only properties are one of the new features available in C# 9.0, officially released on November 2020 with .NET 5.0. This feature provides a way to initialize objects’ properties without being forced to put a set accessor on the properties.

What is the TLS protocol?

Most websites secure their content and protect the privacy and integrity of the data exchanged through the internet by using the Hypertext Transfer Protocol Secure (HTTPS). HTTPS is a communication protocol that encrypts the data exchanged between an application and a server.

Lines of code != Progress

"Measuring programming progress by lines of code is like measuring aircraft building progress by weight."

Bill Gates

The act of writing code means that you are in action or you are trying to create something. But that doesn’t necessarily mean that you are moving toward your goal.

What is an HTTP proxy?

An HTTP proxy is a software component that sits in the middle of web connections established between a client and a server. The proxy server acts as an intermediary to request resources on behalf of the client.

© 2024 Siaka Baro

Up ↑