Category Archives: C#

Implicit vs Explicit interface implementations

It’s a very small but very important concept to be learnt. It’s very normal to use the interfaces in our applications. But at the same time, it’s very important to make sure that these interfaces are implemented correctly. So whenever … Continue reading

Posted in C#, Interview Questions, Object Oriented Programming | Leave a comment

Tuples in C#

Any function we use in C# can return maximum of single value which can be string, int or any other type, as per our requirements. If more than one value is to be returned, we use different types of approaches, like … Continue reading

Posted in C# | Tagged | Leave a comment

Coalescing operator ?? in C#

?? operator in C# is a binary operator. It is also called as null coalescing operator, which returns the left hand operand if it has any value, else, returns the right hand operator. Confused, let’s see an example for this. … Continue reading

Posted in C#, Interview Questions | Tagged | Leave a comment

async and await in C#

In this article we will discuss about the two new keywords that were introduced in C# 5.0, for implementing asynchronous programming. So let’s start with some basic their definitions, rules we have to follow to implement it. await: As per MSDN, … Continue reading

Posted in C# | Leave a comment

checked & unchecked keyword in C#

In this article, we will discuss about the checked and unchecked keywords. Let’s start with their definitions first. As per MSDN checked means, The checked keyword is used to explicitly enable overflow checking for integral-type arithmetic operations and conversions. and … Continue reading

Posted in C# | Leave a comment