In my WPF-application, I call new windows in the following way:
_newWin = new WinWorkers_AddWorker(); _newWin.WindowState = this.WindowState; _newWin.Show(); Where _newWin is a private Window object.
My question is should I assign a null value to _newWin after I call _newWin.Show()?questions:
Will this decrease memory consumption because garbage collector / destructor will clean the null value objects earlier?
Should I assign a null value to
_newWinafter I call_newWin.Show()?Will this decrease memory consumption because garbage collector / destructor will clean the null value objects earlier?