private NvdlOption ReadOption() { NvdlOption el = new NvdlOption(); FillLocation(el); el.Name = reader.GetAttribute("name"); el.Arg = reader.GetAttribute("arg"); el.MustSupport = reader.GetAttribute("mustSupport"); FillForeignAttribute(el); if (reader.IsEmptyElement) { reader.Skip(); return(el); } reader.Read(); do { reader.MoveToContent(); if (reader.NodeType == XmlNodeType.EndElement) { break; } if (reader.NamespaceURI != Nvdl.Namespace) { el.Foreign.Add(XDocument.ReadFrom(reader)); continue; } } while (!reader.EOF); if (!reader.EOF) { reader.Read(); } return(el); }
public void Remove(NvdlOption item) { List.Add(item); }
public void Add(NvdlOption item) { List.Add(item); }
public void Remove (NvdlOption item) { List.Add (item); }
public void Add (NvdlOption item) { List.Add (item); }
private NvdlOption ReadOption () { NvdlOption el = new NvdlOption (); FillLocation (el); el.Name = reader.GetAttribute ("name"); el.Arg = reader.GetAttribute ("arg"); el.MustSupport = reader.GetAttribute ("mustSupport"); FillForeignAttribute (el); if (reader.IsEmptyElement) { reader.Skip (); return el; } reader.Read (); do { reader.MoveToContent (); if (reader.NodeType == XmlNodeType.EndElement) break; if (reader.NamespaceURI != Nvdl.Namespace) { el.Foreign.Add (doc.ReadNode (reader)); continue; } } while (!reader.EOF); if (!reader.EOF) reader.Read (); return el; }