void Write6_ExtensionFile(string n, string ns, global::System.Web.Compilation.WCFModel.ExtensionFile o, bool isNullable, bool needType) { if ((object)o == null) { if (isNullable) { WriteNullTagLiteral(n, ns); } return; } if (!needType) { System.Type t = o.GetType(); if (t == typeof(global::System.Web.Compilation.WCFModel.ExtensionFile)) { } else { throw CreateUnknownTypeException(o); } } WriteStartElement(n, ns, o, false, null); if (needType) { WriteXsiType(@"ExtensionFile", @"urn:schemas-microsoft-com:xml-dataservicemap"); } WriteAttribute(@"FileName", @"", ((global::System.String)o.@FileName)); WriteAttribute(@"Name", @"", ((global::System.String)o.@Name)); WriteEndElement(o); }
global::System.Web.Compilation.WCFModel.ExtensionFile Read6_ExtensionFile(bool isNullable, bool checkType) { System.Xml.XmlQualifiedName xsiType = checkType ? GetXsiType() : null; bool isNull = false; if (isNullable) isNull = ReadNull(); if (checkType) { if (xsiType == null || ((object) ((System.Xml.XmlQualifiedName)xsiType).Name == (object)id11_ExtensionFile && (object) ((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { } else throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType); } if (isNull) return null; global::System.Web.Compilation.WCFModel.ExtensionFile o; o = new global::System.Web.Compilation.WCFModel.ExtensionFile(); bool[] paramsRead = new bool[2]; while (Reader.MoveToNextAttribute()) { if (!paramsRead[0] && ((object) Reader.LocalName == (object)id16_FileName && (object) Reader.NamespaceURI == (object)id5_Item)) { o.@FileName = Reader.Value; paramsRead[0] = true; } else if (!paramsRead[1] && ((object) Reader.LocalName == (object)id14_Name && (object) Reader.NamespaceURI == (object)id5_Item)) { o.@Name = Reader.Value; paramsRead[1] = true; } else if (!IsXmlnsAttribute(Reader.Name)) { UnknownNode((object)o, @":FileName, :Name"); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip(); return o; } Reader.ReadStartElement(); Reader.MoveToContent(); int whileIterations6 = 0; int readerCount6 = ReaderCount; while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { UnknownNode((object)o, @""); } else { UnknownNode((object)o, @""); } Reader.MoveToContent(); CheckReaderCount(ref whileIterations6, ref readerCount6); } ReadEndElement(); return o; }
global::System.Web.Compilation.WCFModel.ExtensionFile Read6_ExtensionFile(bool isNullable, bool checkType) { System.Xml.XmlQualifiedName xsiType = checkType ? GetXsiType() : null; bool isNull = false; if (isNullable) { isNull = ReadNull(); } if (checkType) { if (xsiType == null || ((object)((System.Xml.XmlQualifiedName)xsiType).Name == (object)id11_ExtensionFile && (object)((System.Xml.XmlQualifiedName)xsiType).Namespace == (object)id2_Item)) { } else { throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType); } } if (isNull) { return(null); } global::System.Web.Compilation.WCFModel.ExtensionFile o; o = new global::System.Web.Compilation.WCFModel.ExtensionFile(); bool[] paramsRead = new bool[2]; while (Reader.MoveToNextAttribute()) { if (!paramsRead[0] && ((object)Reader.LocalName == (object)id16_FileName && (object)Reader.NamespaceURI == (object)id5_Item)) { o.@FileName = Reader.Value; paramsRead[0] = true; } else if (!paramsRead[1] && ((object)Reader.LocalName == (object)id14_Name && (object)Reader.NamespaceURI == (object)id5_Item)) { o.@Name = Reader.Value; paramsRead[1] = true; } else if (!IsXmlnsAttribute(Reader.Name)) { UnknownNode((object)o, @":FileName, :Name"); } } Reader.MoveToElement(); if (Reader.IsEmptyElement) { Reader.Skip(); return(o); } Reader.ReadStartElement(); Reader.MoveToContent(); int whileIterations6 = 0; int readerCount6 = ReaderCount; while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None) { if (Reader.NodeType == System.Xml.XmlNodeType.Element) { UnknownNode((object)o, @""); } else { UnknownNode((object)o, @""); } Reader.MoveToContent(); CheckReaderCount(ref whileIterations6, ref readerCount6); } ReadEndElement(); return(o); }