Introduction As a C# developer, you’re likely familiar with building applications for various platforms, such as Windows, web, or mobile. But have you ever wondered if there’s a way to use your C# skills to build web applications without diving…
Software Developer Productivity – Quick wins
Increasing productivity and limiting interruptions as a software developer is crucial for efficient work. Here are ten quick wins to help you achieve that Time Blocking Prioritize Tasks Single Tasking Use Productivity Tools Automate Repetitive Tasks Set Specific Goals Regular…
Method overloading
Method overloading is a concept in object-oriented programming where multiple methods can have the same name but different parameters. This allows developers to write code that is more intuitive and flexible. Here’s a simple C# example of method overloading with…
C# overriding
In C#, overriding is a mechanism that allows a subclass or derived class to provide a specific implementation of a method or property that is already defined in its base class. How to override? When a method or property is…
C# AS it IS
C# language contains two useful operators as and is which can be used to deal with types casting and checking. Individual examples The “is” keyword in C# is a type-checking operator that determines whether an object is an instance of…
C# Switch expressions
Introduction C# switch expressions were introduced in C# 8.0 as a more concise and expressive way of writing switch statements. Prior to switch expressions, switch statements could only be used to execute a block of code based on the value…
Dealing with NULL in C#
In C#, null is a special value that represents the absence of a value. Handling null values is an essential part of programming in C#. Before accessing any variable, you should always check whether it is null or not. Here…
.NET Garbage Collector
.NET Garbage Collector (GC) is an automatic memory management system that is responsible for freeing up memory that is no longer being used by a .NET application. It is designed to help developers avoid common programming errors such as memory…
Less popular, Still useful keywords in C#
C# is a versatile programming language that offers a rich set of syntax keywords to support various programming paradigms. Some keywords are frequently used, however there are others that are less common but still useful in certain scenarios. In this…
C# Class vs Record vs Struct
C# is an object-oriented programming language that provides different types for defining custom data types. These types include classes, records, and structs. Although they all provide similar functionality, each type has its own set of advantages and disadvantages. In this…