Пример #1
0
        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);
        }
Пример #2
0
        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);
        }