...appunti...
This commit is contained in:
@@ -25,13 +25,26 @@ namespace SCMA
|
||||
public Modules Machine { get; set; }
|
||||
#endif
|
||||
|
||||
// rivedere con
|
||||
// - https://docs.microsoft.com/it-it/dotnet/standard/serialization/controlling-xml-serialization-using-attributes
|
||||
// - https://www.jonasjohn.de/snippets/csharp/xmlserializer-example.htm
|
||||
// RIPENSARE OBJ GERARCHICO IN TOTO...
|
||||
// ModelDesign > MAchine > List<Property> + List<Array> + List<Component> ognuno coi suoi attributi...
|
||||
|
||||
|
||||
[XmlArray("Machine")]
|
||||
//[XmlArrayItem("Property")]
|
||||
[XmlArrayItem("Property", Type = typeof(Property))]
|
||||
[XmlArrayItem("Variable", Type = typeof(Variable))]
|
||||
[XmlArrayItem("Component", Type = typeof(Component))]
|
||||
public ouData[] PVData { get; set; }
|
||||
|
||||
//[XmlArray("Machine")]
|
||||
//[XmlArrayItem("Property")]
|
||||
//[XmlArrayItem("Property", Type = typeof(Property))]
|
||||
//[XmlArrayItem("Variable", Type = typeof(Variable))]
|
||||
//[XmlArrayItem("Component", Type = typeof(Component))]
|
||||
//public cData[] CData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Serializzazione XML dell'oggetto conf dell'adapter
|
||||
/// </summary>
|
||||
@@ -93,9 +106,9 @@ namespace SCMA
|
||||
|
||||
[XmlArray("Machine")]
|
||||
//[XmlArrayItem("Property")]
|
||||
[XmlArrayItem("Property", Type = typeof(Property))]
|
||||
[XmlArrayItem("Variable", Type = typeof(Variable))]
|
||||
[XmlArrayItem("Component", Type = typeof(Component))]
|
||||
//[XmlArrayItem("Property", Type = typeof(Property))]
|
||||
//[XmlArrayItem("Variable", Type = typeof(Variable))]
|
||||
//[XmlArrayItem("Component", Type = typeof(Component))]
|
||||
public ouData[] PVData { get; set; }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user