EvilCode #14 : Can you instantiate an interface using new operator ?

In C#, can an interface or abstract class be instantiated using the "new" operator ? This probably is one the oldest questions one might have heard as a programmer. And the most obvious answer is a big NO. Well, at this point, I would say it is partially INCORRECT. Why and How The answer "Yes" is perfect … Continue reading EvilCode #14 : Can you instantiate an interface using new operator ?

C# 8.0 : Default Implementation of Interface Members

The way C# language is evolving is definitely exciting and one feature that truly makes the wait for C# 8.0 all the more exciting is default implementation of interfaces. Since the onset, interfaces were behaviors characterized by member signatures, strictly disallowing any implementation. All that is going to change when C# 8.0 rolls out, as … Continue reading C# 8.0 : Default Implementation of Interface Members