Is C#.NET garbage collection similar to Java?
Hi, I am relatively new to C#.NET and I was wondering if the garbage collection is similar to Java.
I am developing a windows form application and I am dynamically making new buttons, will they be deleted by themselves or will I manually need to delete them?
For example:
this is declared as global
Button[] Letters = new Button[26];
if I have a function call initLetters() that does this:
Letters[i] = new Button();
if I call initLetters() again will it delete the previous array? overwrite the array?
Thanks for your time.
ff4930
Junior Poster in Training
58 posts since Oct 2007
Reputation Points: 34
Solved Threads: 3