I already posted something similar here , but I would like to ask a more general question here.
Try serializing an object that implements INotifyPropertyChanged and returning it from serialization and binding it to a DataGridView? When I do this, I have no update on the value that changes (I need to minimize the windows and open it).
Do you have a trick
Use DataContractSerializerand create the OnDeserialized method
DataContractSerializer
[OnDeserialized] private void OnDeserialized(StreamingContext c) {}
This will allow you to raise the PropertyChanged event when deserialization is complete.
, , , ...
Serializing interfaces becomes difficult when you are dealing with objects that have internal states. Can you post the sample serialization code you are talking about?
Source: https://habr.com/ru/post/1697398/More articles:Sql query to determine the status? - sqlWhat is the relative reliability of C ++ Builder versions? - c ++ builderHow can I get a summary of my cvs conflicts when performing a cvs update on the command line? - command-linehow to create an array or checkboxlists list ASP.NET - designHow to configure a project to use the latest version of Derby DB (10.4)? - javaC # grid binding not updating - c #How to read HttpResponse in ASP.NET 2.0? - c #Can SQL try-catch block discarded CLR errors? - clrHow to get rid of the console root node in snapin MMC 3.0? - c #How to load different endpoints for WCF in SQL CLR? - clrAll Articles