Question
Multiple Choice
You are developing an applicaton by using C#.
The applicaton includes an object that performs a long running process.
You need to ensure that the garbage collector does not release the object's resources untl the process completes.
Which garbage collector method should you use?
- A. ReRegisterForFinalize()
- B. SuppressFinalize()
- C. Collect()
- D. WaitForFullGCApproach()