GC.GetGeneration() returns always 0 for int variable even after calling GC.Collect() in C#

后端 未结 0 990
礼貌的吻别
礼貌的吻别 2021-01-21 13:25

Below is code snippet in which I am getting generation of variable int j before and after calling garbage collector.

int j = 30;
WriteLine(GC.GetGene         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题