0
can anyone explain what's actually is a garbage collection in C#?
2 Respuestas
+ 5
Its an Important Feature of Csharp which specifies that out of scope variables must be flushed out of memory i.e., the Memory Space they have used/taken Must be freed as they are no longer used.
This Process of Freeing memory is done automatically in C Sharp, we donot Need to call any method (like in C or C++) to free memory taken by the Data Members.
Hope U Got The Right Answer.
+ 4
Garbage collection is where all of your unused variables and data is removed from memory which frees up resources and helps optomize permormance.