Exemple #1
0
        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);
        }
Exemple #2
0
 public void Remove(NvdlOption item)
 {
     List.Add(item);
 }
Exemple #3
0
 public void Add(NvdlOption item)
 {
     List.Add(item);
 }
Exemple #4
0
		public void Remove (NvdlOption item)
		{
			List.Add (item);
		}
Exemple #5
0
		public void Add (NvdlOption item)
		{
			List.Add (item);
		}
Exemple #6
0
		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;
		}