I was wondering when, in these circumstances, the destructor is called, and if it is called in the main UI thread?
Let's say I have the following code when the destructor is called, and will it wait until I finish all my function calls?
private void Foo() { MyObject myObj = new MyObject(); DoSomeFunThingsWithMyObject(myObj); myObj = new MyObject();
This is what interests me if the thread breaks in myObj = new MyObject (), or if the call to Destructor waits until Thread is free.
Thanks for the info.
The power
source share