C# Programming
03-31-2009, 03:00 PM
Hi All,
Image I have a collection of items that is populated when a load function is called. This load function can be called multiple times based on user interaction.
My questions are...
Should I clear the current instance of the collection at the start of each load or should I simply create a new instance each time?
Are there any benifits or disadvantages to using one method over the other?
I cant image its going to make much difference either way... but you never know what you dont know
Life goes very fast. Tomorrow, today is already yesterday.
Image I have a collection of items that is populated when a load function is called. This load function can be called multiple times based on user interaction.
My questions are...
Should I clear the current instance of the collection at the start of each load or should I simply create a new instance each time?
Are there any benifits or disadvantages to using one method over the other?
I cant image its going to make much difference either way... but you never know what you dont know
Life goes very fast. Tomorrow, today is already yesterday.