private bool CompareLaneProperties(Lane laneToCompare) { if (laneToCompare != null && this.ApproachID == laneToCompare.ApproachID && this.LaneID == laneToCompare.LaneID && this.Description == laneToCompare.Description && this.MovementTypeID == laneToCompare.MovementTypeID && this.LaneGroupTypeID == laneToCompare.LaneGroupTypeID && this.Detectors == laneToCompare.Detectors ) { return(true); } else { return(false); } }
public bool Equals(Lane laneToCompare) { return(CompareLaneProperties(laneToCompare)); }