I read the answer to the question. Did event handlers stop collecting garbage collection? but what happens when the publisher is the target?
To be more specific, I am using an MVVM project for a WPF application. Model-View classes increment NotifyPropertyChanged with every change. In some classes, I need to call a method when something has changed.
I would like to do this:
this.PropertyChanged += this.MyHandler;
Will these GC instances be destroyed?
GC , - . , , .
, , , : A B :
A.Event += B.Handler; B.Event += A.Handler;
A B , GC , , . , ( ) , .
GC . , .NET gc .
, GC , , .
GC , ( , ..), , , , .. , " ". , , " ", .
, , GC , .
, , objectA B, objectB A , , GC , .
( - SO )
Source: https://habr.com/ru/post/1708752/More articles:Model-View-Presenter: UI Testing - user-interfaceCreate your own click event handler for the WPF user control that contains the? - event-handlingTree color TreeViewer alternatively - eclipsehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1708750/add-items-to-telerik-ajax-radcombobox-after-populated-from-webservice&usg=ALkJrhjcJ26IxGWwvt8gazKALQg4wB0w6gObject reference not set in GetRouteData (System.Web.Routing) - moduleCode Viewer for VB 6.0 - vb6What are the best forums about Sharepoint 2007? - sharepointAdobe peer-to-peer Adobe Flash application - flash.NET custom form designer: How to implement IMenuCommandService? - c #Capturing a wpf popup while restricting the main window - wpfAll Articles