You are developing an application by using C#.
The application includes an object that performs a long running process.
You need to ensure that the garbage collector does not release the object’s resources until
the process completes.
Which garbage collector method should you use?

A.
ReRegisterForFinalize()
B.
SuppressFinalize()
C.
Collect()
D.
WaitForFullGCApproach()
Ans. B
0
0
17 and 64 are the same.
0
0
Can anyone provide more information about correct answer?
0
0
SuppressFinalize inform the runtime (GC) that the object doesn’t need to be finalized any more
0
0
HEEEEEEEEEEEEY MACARENA
1
0