You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use YamlDotNet to read arbitrary .yaml configuration files. From this I get af structure of: Dictionary<object,object>, List<object> and object.
I then traverse the above structure and create another similar structure UiStructure that I use to bind my ui interface to. It supports stuff like IsDirty properties and a lot more.
When a configuration/setting is changed in the ui the updated value will be set in the original structure (1), but the IsDirty marking is set in the UiStructure (2)
Finally I would like to serialize the original structure (with changes), but ONLY the updated part. Said in simple terms I need to create a .yaml string with only changed content.
So my question is:
Is it possible to call the standard serializing method and then inject each entity to consider if it should be a part of the serialization or not?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi.
I will describe my question in short terms.
Dictionary<object,object>
,List<object>
andobject
.UiStructure
that I use to bind my ui interface to. It supports stuff likeIsDirty
properties and a lot more.IsDirty
marking is set in theUiStructure
(2)So my question is:
Beta Was this translation helpful? Give feedback.
All reactions