示例#1
0
        internal void FillLocation(XmlReader reader)
        {
            var l = reader as IXmlLineInfo;

            if (l != null && l.HasLineInfo())
            {
                Location = new ProjectElementLocation(reader.BaseURI, l);
            }
            if (reader.MoveToAttribute("Condition") && l.HasLineInfo())
            {
                ConditionLocation = new ProjectElementLocation(reader.BaseURI, l);
            }
            if (reader.MoveToAttribute("Label") && l.HasLineInfo())
            {
                LabelLocation = new ProjectElementLocation(reader.BaseURI, l);
            }
            reader.MoveToElement();
        }
示例#2
0
 internal void FillLocation (XmlReader reader)
 {
         var l = reader as IXmlLineInfo;
         if (l != null && l.HasLineInfo ())
                 Location = new ProjectElementLocation (reader.BaseURI, l);
         if (reader.MoveToAttribute ("Condition") && l.HasLineInfo ())
                 ConditionLocation = new ProjectElementLocation (reader.BaseURI, l);
         if (reader.MoveToAttribute ("Label") && l.HasLineInfo ())
                 LabelLocation = new ProjectElementLocation (reader.BaseURI, l);
         reader.MoveToElement ();
 }