Blog for Junior Developers C#/.NET

I would like to devote today's article to 4 expressions that you have probably used more than once when writing queries using LINQ. I'm talking about First, FirstOrDefault, Single and SingleOrDefault. Admit it, do you really know in [...]
Do You Really Know the Differences Between First vs FirstOrDefault vs Single vs SingleOrDefault?
ASP.NET MVC developers know that data can be passed from a controller to a view in a variety of ways. The most popular way is to use ViewModel, but you can also use ViewBag, ViewData and TempaData, among others, but what is [...]
Difference Between ViewData, ViewBag and TempData
When writing applications, you will often use ready-made libraries and classes that were written by other people and you will not have access to their source code. If you need a method that is not in a given class, you will probably [...]
Extension Methods in C#, or How to Easily Extend an Existing Type
In a previous blog post, I touched on exception handling in C#. I've introduced you to some popular methods of throwing exceptions that are often used by programmers. Then I also mentioned that if we want to handle an [...]
Logging Data to a File in C# Using the NLog Library
An integral part of developers' work is fixing bugs in the application. It is not so easy to predict all scenarios of how users will work with your application. That's why sometimes (or maybe even often) they report errors (which may [...]
Simple Rules to Remember When Handling Exceptions in C#
When you create a new class in C# from Visual Studio, are you often annoyed that the class is created by default without a public access modifier? A class that does not have an explicitly defined access modifier has internal access [...]
How to Create New Classes in Visual Studio Default with Public Modifier?
When starting your adventure with programming, it is worth sticking to good practices from the very beginning. It's not just about writing code, but also about using the tools we use. In today's article, I wanted to share with you the [...]
21 Snippets in Visual Studio That Will Increase Your Productivity
A person who starts learning programming has many options. There are a lot of materials and methods of learning, but what is the best way to learn programming these days to get the best results? When I took my first steps in [...]
How to Learn Programming from Scratch?
© Copyright 2025 CodeWithKazik.com. All rights reserved. Privacy policy | AIDroga.pl
Design by Code With Kazik and Modest Programmer.