public override bool Equals(object obj) { // Check for null if (obj == null) { return(false); } // Check for type if (this.GetType() != obj.GetType()) { return(false); } // Cast as IfcRoot IfcAddress root = (IfcAddress)obj; return(this == root); }
///// <summary> ///// The inverse relationship to Person to whom address is associated. ///// </summary> //public IEnumerable<Person> OfPerson //{ // get // { // return from Person p in AddressBook.Persons // where p.Addresses.Contains(this) // select p; // } //} ///// <summary> ///// The inverse relationship to Organization to whom address is associated. ///// </summary> //public IEnumerable<Organization> OfOrganization //{ // get // { // return from Organization org in AddressBook.Organizations // where org.Addresses.Contains(this) // select org; // } //} #endregion #region Methods protected void Clone(IfcAddress from, bool deep) { _purpose = from.Purpose; _description = from.Description; _userDefinedPurpose = from.UserDefinedPurpose; }