/// <summary> /// Compares the supplied object to this object for equality. /// </summary> /// /// <param name="obj">the object to compare</param> /// <returns>whether the supplied object is equal to this object</returns> public override bool Equals(Object obj) { if (obj == null) { return(false); } else if ((Object)GetType() != (Object)obj.GetType()) { return(false); } else { PostalAddressPart that = (PostalAddressPart)obj; return(new EqualsBuilder().Append(this.type, that.type).Append( this.value_ren, that.value_ren).Append(this.code, that.code) .IsEquals()); } }
/// <summary> /// Add a part to this postal address. /// </summary> /// /// <param name="postalAddressPart">the part to add</param> public void AddPostalAddressPart(PostalAddressPart postalAddressPart) { ILOG.J2CsMapping.Collections.Generics.Collections.Add(this.parts, postalAddressPart); }