Will there be .NET GC integration with an abandoned object executing the method asynchronously?

In .Net, suppose I create an object that starts an asynchronous process (using Delegate.BeginInvoke using one of its methods), then leaves the object by setting the reference to it null or allowing it to go out of scope. Is the garbage collector going to collect an object during an asynchronous process? If not, what prevents him from collecting the object?

+5
source share
1 answer

If you are in fully managed code, it will not be compiled.

, , ( ). , . , .

, , , . . MSDN.

+12

All Articles