c# - Can I call specific generation GC -


i'm interested if can call full gc or level 1 gc ?

you can specify generation when calling collect method

gc.collect(1); 

as essigwurst wrote - remember calling gc.waitforpendingfinalizers() afterwards. bare in mind explicitly collecting not reccomended because of permormance issues. can more information in these threads:


Comments