CodePudding user response:
What you said is not WPFCodePudding user response:
Serialization and deserializationCodePudding user response:
On the 14th floor, https://bbs.csdn.net/topics/392721136 needs to change, the 15 floor serializationWith mainly by the attribute of the
Public static void ForeachClassProperties
{
The Type t=model. GetType ();
PropertyInfo [] PropertyList=t.G etProperties ();
Foreach (PropertyInfo item in PropertyList)
{
ControlAttributes. Add (new ControlAttribute (item Name, item. The GetValue (model, null)));
}
}