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);
        }