Exemple #1
0
            public XElement ToQBXML(string name)
            {
                XElement xElement = new XElement(name);

                xElement.Add(Addr1.ToQBXML(nameof(Addr1)));
                xElement.Add(Addr2.ToQBXML(nameof(Addr2)));
                xElement.Add(Addr3.ToQBXML(nameof(Addr3)));
                xElement.Add(Addr4.ToQBXML(nameof(Addr4)));
                xElement.Add(Addr5.ToQBXML(nameof(Addr5)));
                return(xElement);
            }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Gcp != null ? Gcp.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Addr2 != null ? Addr2.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Addr3 != null ? Addr3.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Addr4 != null ? Addr4.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PostalCode != null ? PostalCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Tel != null ? Tel.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Mail != null ? Mail.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #3
0
            public new XElement ToQBXML(string name)
            {
                XElement xElement = new XElement(name);

                xElement.Add(Name.ToQBXML(nameof(Name)));
                xElement.Add(Addr1.ToQBXML(nameof(Addr1)));
                xElement.Add(Addr2.ToQBXML(nameof(Addr2)));
                xElement.Add(Addr3.ToQBXML(nameof(Addr3)));
                xElement.Add(Addr4.ToQBXML(nameof(Addr4)));
                xElement.Add(Addr5.ToQBXML(nameof(Addr5)));
                xElement.Add(City.ToQBXML(nameof(City)));
                xElement.Add(State.ToQBXML(nameof(State)));
                xElement.Add(PostalCode.ToQBXML(nameof(PostalCode)));
                xElement.Add(Country.ToQBXML(nameof(Country)));
                xElement.Add(Note.ToQBXML(nameof(Note)));
                xElement.Add(DefaultShipTo.ToQBXML(nameof(DefaultShipTo)));
                return(xElement);
            }