protected void ParseXml(XElement element) { this.name = element.Attribute("name").Value; this.id = element.Attribute("id").Value; string category = element.Attribute("category").Value; this.category = Utils.Convert(category); }
protected void ParseXml(XElement element) { this.name = element.Attribute("name").Value; this.id = element.Attribute("id").Value; this.cooperation = Convert.ToInt32(element.Attribute("cooperation").Value); string category = element.Attribute("category").Value; this.category = Utils.Convert(category); }