Interviews1 answer
What is the use of GC.KeepAlive Method?
1 Answer
It is use to keep the obj Alive in case of it is no longer use in the code ,it will be destroy by finlize by GC that's why we use gc.keepalive to keep safe its reference in memory.
sandeep palPosted Sep 28, 2016, 3:13 AM EDT
