/// <summary> /// true, if all data *except the two IDs* is equal (case insensitive) /// </summary> /// <param name="eqSystem"></param> /// <returns></returns> public bool EqualsED(EDStation eqStation) { bool retValue = false; if (eqStation != null) { if (ObjectCompare.EqualsNullable(this.Name, eqStation.Name) && ObjectCompare.EqualsNullable(this.MaxLandingPadSize, eqStation.MaxLandingPadSize) && ObjectCompare.EqualsNullable(this.DistanceToStar, eqStation.DistanceToStar) && ObjectCompare.EqualsNullable(this.Faction, eqStation.Faction) && ObjectCompare.EqualsNullable(this.Government, eqStation.Government) && ObjectCompare.EqualsNullable(this.Allegiance, eqStation.Allegiance) && ObjectCompare.EqualsNullable(this.State, eqStation.State) && ObjectCompare.EqualsNullable(this.Type, eqStation.Type) && ObjectCompare.EqualsNullable(this.HasBlackmarket, eqStation.HasBlackmarket) && ObjectCompare.EqualsNullable(this.HasCommodities, eqStation.HasCommodities) && ObjectCompare.EqualsNullable(this.HasRefuel, eqStation.HasRefuel) && ObjectCompare.EqualsNullable(this.HasRepair, eqStation.HasRepair) && ObjectCompare.EqualsNullable(this.HasRearm, eqStation.HasRearm) && ObjectCompare.EqualsNullable(this.HasOutfitting, eqStation.HasOutfitting) && ObjectCompare.EqualsNullable(this.HasShipyard, eqStation.HasShipyard) && ObjectCompare.EqualsNullable(this.ImportCommodities, eqStation.ImportCommodities) && ObjectCompare.EqualsNullable(this.ExportCommodities, eqStation.ExportCommodities) && ObjectCompare.EqualsNullable(this.ProhibitedCommodities, eqStation.ProhibitedCommodities) && ObjectCompare.EqualsNullable(this.Economies, eqStation.Economies)) { retValue = true; } } return(retValue); }
/// <summary> /// true, if all data *except the ID* is equal (case insensitive) /// </summary> /// <param name="eqSystem"></param> /// <returns></returns> public bool EqualsED(EDSystem eqSystem) { bool retValue = false; if (eqSystem != null) { if (ObjectCompare.EqualsNullable(this.Name, eqSystem.Name) && ObjectCompare.EqualsNullable(this.X, eqSystem.X) && ObjectCompare.EqualsNullable(this.Y, eqSystem.Y) && ObjectCompare.EqualsNullable(this.Z, eqSystem.Z) && ObjectCompare.EqualsNullable(this.Faction, eqSystem.Faction) && ObjectCompare.EqualsNullable(this.Population, eqSystem.Population) && ObjectCompare.EqualsNullable(this.Government, eqSystem.Government) && ObjectCompare.EqualsNullable(this.Allegiance, eqSystem.Allegiance) && ObjectCompare.EqualsNullable(this.State, eqSystem.State) && ObjectCompare.EqualsNullable(this.Security, eqSystem.Security) && ObjectCompare.EqualsNullable(this.PrimaryEconomy, eqSystem.PrimaryEconomy) && ObjectCompare.EqualsNullable(this.Power, eqSystem.Power) && ObjectCompare.EqualsNullable(this.PowerState, eqSystem.PowerState) && ObjectCompare.EqualsNullable(this.NeedsPermit, eqSystem.NeedsPermit) && ObjectCompare.EqualsNullable(this.UpdatedAt, eqSystem.UpdatedAt) && ObjectCompare.EqualsNullable(this.Simbad_Ref, eqSystem.Simbad_Ref)) { retValue = true; } } return(retValue); }