void Write2_Address(string n, string ns, global::uwpSerializer.Address o, bool isNullable, bool needType, string parentRuntimeNs = null, string parentCompileTimeNs = null)
        {
            string defaultNamespace = parentRuntimeNs;

            if ((object)o == null)
            {
                if (isNullable)
                {
                    WriteNullTagLiteral(n, ns);
                }
                return;
            }
            if (!needType)
            {
                System.Type t = o.GetType();
                if (t == typeof(global::uwpSerializer.Address))
                {
                }
                else
                {
                    throw CreateUnknownTypeException(o);
                }
            }
            WriteStartElement(n, ns, o, false, null);
            if (needType)
            {
                WriteXsiType(@"Address", defaultNamespace);
            }
            WriteAttribute(@"Name", @"", ((global::System.String)o.@Name));
            string namespace14 = (parentCompileTimeNs == @"http://www.cpandl.com" && parentRuntimeNs != null) ? parentRuntimeNs : @"http://www.cpandl.com";

            WriteElementString(@"Line1", namespace14, ((global::System.String)o.@Line1));
            string namespace15 = (parentCompileTimeNs == @"http://www.cpandl.com" && parentRuntimeNs != null) ? parentRuntimeNs : @"http://www.cpandl.com";

            WriteElementString(@"City", namespace15, ((global::System.String)o.@City));
            string namespace16 = (parentCompileTimeNs == @"http://www.cpandl.com" && parentRuntimeNs != null) ? parentRuntimeNs : @"http://www.cpandl.com";

            WriteElementString(@"State", namespace16, ((global::System.String)o.@State));
            string namespace17 = (parentCompileTimeNs == @"http://www.cpandl.com" && parentRuntimeNs != null) ? parentRuntimeNs : @"http://www.cpandl.com";

            WriteElementString(@"Zip", namespace17, ((global::System.String)o.@Zip));
            WriteEndElement(o);
        }
        global::uwpSerializer.Address Read2_Address(bool isNullable, bool checkType, string defaultNamespace = null)
        {
            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)id15_Address && string.Equals(((System.Xml.XmlQualifiedName)xsiType).Namespace, defaultNamespace ?? id2_httpwwwcpandlcom)))
                {
                }
                else
                {
                    throw CreateUnknownTypeException((System.Xml.XmlQualifiedName)xsiType);
                }
            }
            if (isNull)
            {
                return(null);
            }
            global::uwpSerializer.Address o;
            o = new global::uwpSerializer.Address();
            bool[] paramsRead = new bool[5];
            while (Reader.MoveToNextAttribute())
            {
                if (!paramsRead[0] && ((object)Reader.LocalName == (object)id16_Name && string.Equals(Reader.NamespaceURI, id17_Item)))
                {
                    o.@Name       = Reader.Value;
                    paramsRead[0] = true;
                }
                else if (!IsXmlnsAttribute(Reader.Name))
                {
                    UnknownNode((object)o, @":Name");
                }
            }
            Reader.MoveToElement();
            if (Reader.IsEmptyElement)
            {
                Reader.Skip();
                return(o);
            }
            Reader.ReadStartElement();
            Reader.MoveToContent();
            int whileIterations3 = 0;
            int readerCount3     = ReaderCount;

            while (Reader.NodeType != System.Xml.XmlNodeType.EndElement && Reader.NodeType != System.Xml.XmlNodeType.None)
            {
                if (Reader.NodeType == System.Xml.XmlNodeType.Element)
                {
                    if (!paramsRead[1] && ((object)Reader.LocalName == (object)id18_Line1 && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_httpwwwcpandlcom)))
                    {
                        {
                            o.@Line1 = Reader.ReadElementContentAsString();
                        }
                        paramsRead[1] = true;
                    }
                    else if (!paramsRead[2] && ((object)Reader.LocalName == (object)id19_City && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_httpwwwcpandlcom)))
                    {
                        {
                            o.@City = Reader.ReadElementContentAsString();
                        }
                        paramsRead[2] = true;
                    }
                    else if (!paramsRead[3] && ((object)Reader.LocalName == (object)id20_State && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_httpwwwcpandlcom)))
                    {
                        {
                            o.@State = Reader.ReadElementContentAsString();
                        }
                        paramsRead[3] = true;
                    }
                    else if (!paramsRead[4] && ((object)Reader.LocalName == (object)id21_Zip && string.Equals(Reader.NamespaceURI, defaultNamespace ?? id2_httpwwwcpandlcom)))
                    {
                        {
                            o.@Zip = Reader.ReadElementContentAsString();
                        }
                        paramsRead[4] = true;
                    }
                    else
                    {
                        UnknownNode((object)o, @"http://www.cpandl.com:Line1, http://www.cpandl.com:City, http://www.cpandl.com:State, http://www.cpandl.com:Zip");
                    }
                }
                else
                {
                    UnknownNode((object)o, @"http://www.cpandl.com:Line1, http://www.cpandl.com:City, http://www.cpandl.com:State, http://www.cpandl.com:Zip");
                }
                Reader.MoveToContent();
                CheckReaderCount(ref whileIterations3, ref readerCount3);
            }
            ReadEndElement();
            return(o);
        }