void WriteObject_AssemblyDependency(Mono.Addins.Description.AssemblyDependency ob, string element, string namesp, bool isNullable, bool needType, bool writeWrappingElem) { if (((object)ob) == null) { if (isNullable) { WriteNullTagLiteral(element, namesp); } return; } System.Type type = ob.GetType(); if (type == typeof(Mono.Addins.Description.AssemblyDependency)) { } else { throw CreateUnknownTypeException(ob); } if (writeWrappingElem) { WriteStartElement(element, namesp, ob); } if (needType) { WriteXsiType("AssemblyDependency", ""); } WriteElementString("FullName", "", ob.@FullName); WriteElementString("Package", "", ob.@Package); if (writeWrappingElem) { WriteEndElement(ob); } }
public Mono.Addins.Description.AssemblyDependency ReadObject_AssemblyDependency(bool isNullable, bool checkType) { Mono.Addins.Description.AssemblyDependency ob = null; if (isNullable && ReadNull()) { return(null); } if (checkType) { System.Xml.XmlQualifiedName t = GetXsiType(); if (t == null) { } else if (t.Name != "AssemblyDependency" || t.Namespace != "") { throw CreateUnknownTypeException(t); } } ob = new Mono.Addins.Description.AssemblyDependency(); Reader.MoveToElement(); while (Reader.MoveToNextAttribute()) { if (IsXmlnsAttribute(Reader.Name)) { } else { UnknownNode(ob); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip(); return(ob); } Reader.ReadStartElement(); Reader.MoveToContent(); bool b26 = false, b27 = false; while (Reader.NodeType != System.Xml.XmlNodeType.EndElement) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { if (Reader.LocalName == "Package" && Reader.NamespaceURI == "" && !b27) { b27 = true; ob.@Package = Reader.ReadElementString(); } else if (Reader.LocalName == "FullName" && Reader.NamespaceURI == "" && !b26) { b26 = true; ob.@FullName = Reader.ReadElementString(); } else { UnknownNode(ob); } } else { UnknownNode(ob); } Reader.MoveToContent(); } ReadEndElement(); return(ob); }
public Mono.Addins.Description.AssemblyDependency ReadObject_AssemblyDependency (bool isNullable, bool checkType) { Mono.Addins.Description.AssemblyDependency ob = null; if (isNullable && ReadNull()) return null; if (checkType) { System.Xml.XmlQualifiedName t = GetXsiType(); if (t == null) { } else if (t.Name != "AssemblyDependency" || t.Namespace != "") throw CreateUnknownTypeException(t); } ob = new Mono.Addins.Description.AssemblyDependency (); Reader.MoveToElement(); while (Reader.MoveToNextAttribute()) { if (IsXmlnsAttribute (Reader.Name)) { } else { UnknownNode (ob); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip (); return ob; } Reader.ReadStartElement(); Reader.MoveToContent(); bool b26=false, b27=false; while (Reader.NodeType != System.Xml.XmlNodeType.EndElement) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { if (Reader.LocalName == "Package" && Reader.NamespaceURI == "" && !b27) { b27 = true; ob.@Package = Reader.ReadElementString (); } else if (Reader.LocalName == "FullName" && Reader.NamespaceURI == "" && !b26) { b26 = true; ob.@FullName = Reader.ReadElementString (); } else { UnknownNode (ob); } } else UnknownNode(ob); Reader.MoveToContent(); } ReadEndElement(); return ob; }