Which object should you use to store the node?

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

microsoft-exams

One thought on “Which object should you use to store the node?

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.