Пример #1
0
 public XElement ToXML()
 {
     return(new XElement("Equipment",
                         new XElement("OccupiesSlots", from a in OccupiesSlots select a.ToXML()),
                         new XElement("CoversSlots", from a in CoversSlots select a.ToXML()),
                         new XElement("OnEquip", OnEquip.ToXML()),
                         new XElement("OnUnequip", OnUnequip.ToXML()),
                         new XElement("OnMove", OnMove.ToXML())));
 }