1st commit
This commit is contained in:
45
xmlserializetest/Groups.cs
Normal file
45
xmlserializetest/Groups.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace xmlserializetest
|
||||
{
|
||||
public class Groups
|
||||
{
|
||||
[XmlAttribute("xmlns")]
|
||||
public string Xmlns { get; set; }
|
||||
|
||||
[XmlElement("group")]
|
||||
public Group[] Group { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class Group
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
[XmlAttribute("desc")]
|
||||
public string Desc { get; set; }
|
||||
[XmlAttribute("type")]
|
||||
public string Type { get; set; }
|
||||
[XmlAttribute("color")]
|
||||
public string Color { get; set; }
|
||||
|
||||
|
||||
[XmlElement("pin")]
|
||||
public Pin[] Pin { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class Pin
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
[XmlAttribute("desc")]
|
||||
public string Desc { get; set; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user