Difference between Interface and Class

Interface is more popular and used in single-inheritance class model languages. There object's interface is used by making instances of objects. The languages which supports multi-inheritance class model, there classes & different methods are used instead of Interface. In C#, class doesn't support multiple inheritance and Interface is used to get the functionality of class multi-inheritance. [More]

Null-coalescing and Ternary operator in C#

Null coalescing operator in C# comes under binary operators and used for checking null. It works fine with both types: reference types and nullable types. One more important point regarding this operator is - it is right associative operator like our assignment, and conditional operators. So it start evaluating from right to left. [More]