70-483 Exam QuestionsBrowse all questions from this exam

70-483 Exam - Question 61


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?

Show Answer
Correct Answer: B

SuppressFinalize() is used to prevent the garbage collector from calling the finalizer for a specified object. This ensures that the object's resources are not released prematurely until the process completes.

Discussion

1 comment
Sign in to comment
Max134
Dec 26, 2020

B - Either SupressFinalize or KeekAlive could apply.