can anyone explain what's actually is a garbage collection in C#? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

can anyone explain what's actually is a garbage collection in C#?

15th Jun 2016, 8:47 PM
sathya pramod
sathya pramod - avatar
2 Antworten
+ 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.
16th Jun 2016, 4:46 PM
Aamir Bashir
Aamir Bashir - avatar
+ 4
Garbage collection is where all of your unused variables and data is removed from memory which frees up resources and helps optomize permormance.
15th Jun 2016, 10:13 PM
Jeremiah
Jeremiah - avatar