If there is a weak reference to an object, is it considered a live or dead object?

ThinhKKieuThinhKKieu USMember ✭✭

The garbage collector cannot collect an object in use by an application while the application's code can reach that object. The application is said to have a strong reference to the object.

A weak reference permits the garbage collector to collect the object while still allowing the application to access the object.
Source: https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/weak-references

So, if there is a weak reference to an object in the last snapshot, is it considered a live or dead object by Xamarin Profiler?

Best Answer

Answers

Sign In or Register to comment.