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(); }
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 (); }