Exception Handling in C#

Exception Handling in C#

Exception handling is a very important topic that is sometimes not properly understood or less used. In this article, I will explain to you about the Exceptions, and how to …

Read More
csharp async await tutorial

Your Ultimate async / await Tutorial in C#

You might have already heard about asynchronous programming or async / await, either in .Net or some other language. In this article I will try to explain it to you, …

Read More
Generics in C#

Demystifying Generics in C#

Generics is a great concept in programming languages that was added to .Net 2.0 , it introduces the parameter T to types and methods. Generics improve code reusability, enforces type safety and prevents performance overhead of boxing/unboxing.

Read More
strings-stringbuilder-csharp

The Difference Between String and StringBuilder in C#

In this article, I will be explaining the difference between using String and StringBuilder when dealing with your string values. and in which cases you should never use String. and other cases where StringBuilder is not the optimal solution.

Read More
backgroundworker running status

BackgroundWorker in C#

The BackgroundWorker is an event-driven way to perform an operation on a separate and dedicated thread. The BackgroundWorker is mostly used when you need to show the user a friendly progress while you are operating a long running process such as downloading files, connecting to database and getting results…etc. The idea behind the BackgroundWorker comes from its name; it processes some operations in the background and any other operation can be performed in parallel meanwhile.

Read More
enumeration friendly names

How to Display Friendly Names for Enumerations in C#?

Displaying friendly names for enumeration elements using the Description annotation

Read More
extension methods in dotnet

Understanding Extension Methods in .Net

Extension methods is a great feature in .Net that allows developers to add or extend methods of existing types or classes and call them naturally, as if they are part of these types or classes

Read More
conditional operators

Single Line Conditional Operators in .Net

Do you know that you can write a nested conditional statement in .net with true and false sides in a single line of code? Yes, this is possible. It can …

Read More