The Life and Time of an object In C#
Lets see, what happens when you create and destroy an object. Here we have created an object like this: TextBox msg=new TextBox(); // TextBox is a reference type From your point of view, the new operator looks atomic, but underneath, object creation is really a two-phase process. In the first step, the new …