Will an object, that is connected to an event, be spared by the garbage collector?

Trips

Well-known member
Joined
Aug 7, 2010
Messages
2,788
Hello.
If i have an object "A" and that object has a method "a" that i added to an event "b" from object "B" (like B.b += A.a), will this suffice to prevent the garbage collector from removing object A?
(Note: Im not trying to keep the object, i just want to know if i have to do some manual cleanup before i can be sure itll be gone.)

View the full article
 
Back
Top