As we know Garbage Collector in .Net is in deterministic which means that we can never be sure when the garbage collector be invoked (of course, unless and until we explicitly invoke it) . Now there might be scenarios in which we need to release certain resources held by an object (like a database connection) once the object is no longer in use. We have destructors in...

I believe in simplifying this as far as possible. If there are n ways of performing something, then the best one is the simplest of all. So what is the definition of something being simple? Well, the one which requires least number of other things to be understood to understand it can be called the simplest one. The one which has the least number of parameters could be...