...appunti...

This commit is contained in:
Samuele E. Locatelli
2019-06-28 15:32:35 +02:00
parent 981340484d
commit ef1e3013d3
+17 -4
View File
@@ -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; }