Which object should you use to store the node?

Posted by: Pdfprep Category: 70-483 Tags: , ,

You are developing a Windows Forms (WinForms) application. The application displays a TreeView that has 1,000 nodes.

You need to ensure that if a user expands a node, and then collapses the TreeView, the node object is kept in memory unless the Garbage Collector requires additional memory.

Which object should you use to store the node?
A . GC
B . Handle
C . Cache
D . WeakReference

Answer: D

Explanation:

References: https://msdn.microsoft.com/en-us/library/ms404247.aspx

Leave a Reply

Your email address will not be published.