In the previous article I showed you how to separate the view code from the C# code. In this lesson we will work on the same project (default Blazor Web App template) and will show you how to style, how to add CSS files in Blazor [...]
If you create a new Blazor Web App project (you can choose any rendering mode and any rendering location), then in the template, e.g. in the Counter.razor component, you can see that in one file we have both razor code, which is [...]
With .NET 8, a new template called Blazor Web App was created, and this is the cherry on the cake when it comes to Blazor. In this article, I will describe what Blazor Web App is and how to create applications here. Introduction. In [...]
With .NET 8, a new rendering mode called Server Side Rendering (SSR) has appeared. The name itself can be a bit confusing with Blazor Server. However, Blazor Server Side Rendering and Blazor Server are two different things [...]
The second hosting model in Blazor is the so-called Blazor WebAssembly, or WASM for short. Initially, Blazor only provided these 2 models, but since .NET 8 it has improved it and added more. In this article, I will introduce you to [...]
In Blazor, you can create different types of apps that can be separated based on the hosting model. The first type is Blazor Server based on SignalR. In this article, I will introduce you to this topic. Introduction. In Blazor Server [...]
Writing good unit tests is not easy. Especially the first tests can be a bit difficult for you, so to help you I wanted to present you 7 in my opinion the most common mistakes beginners make when writing unit tests, which you should [...]
When creating applications in C#, you will certainly often have to perform various operations related to text. That is, you will want to verify whether the given string contains a string of characters, swap characters, delete, modify [...]
Since C# 3.0, C#/.NET developers have access to the so-called implicit type var. You can learn exactly what var is, when and how to use it in C# in this article. What is the purpose of using the var keyword? I have prepared some [...]
In C#, we deal with two types, namely the value type, also known as the simple type, and the reference type. It is necessary to understand what these types really are, how to use them, and what are the differences between them. In [...]