Can anyone please tell me how I can free objects in C#? For example, I have an object:
Object obj1 = new Object(); //Some code using obj1 /* Here I would l
You can use the using statement. After the scope the reference to the object will be removed and garbage collector can collect it at a later time.