Read() public méthode

public Read ( ObjectReader reader, XmlElement elem ) : void
reader ObjectReader
elem System.Xml.XmlElement
Résultat void
Exemple #1
0
        public override void Read(ObjectReader reader, XmlElement elem)
        {
            name = elem.GetAttribute("name");
            string uid = elem.GetAttribute("undoId");

            if (uid.Length > 0)
            {
                UndoId = uid;
            }
            foreach (XmlElement child in elem.SelectNodes("action"))
            {
                Action ac = new Action();
                ac.Read(reader, child);
                actions.Add(ac);
            }
        }
Exemple #2
0
		public override void Read (ObjectReader reader, XmlElement elem)
		{
			name = elem.GetAttribute ("name");
			string uid = elem.GetAttribute ("undoId");
			if (uid.Length > 0)
				UndoId = uid;
			foreach (XmlElement child in elem.SelectNodes ("action")) {
				Action ac = new Action ();
				ac.Read (reader, child);
				actions.Add (ac);
			}
		}