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
It's not recommended, but if you really need to, you can force garbage collection via:
GC.Collect();