private bool Equals(StructureBase other) { return(Id.Equals(other.Id) && Name.Equals(other.Name) && Location.Equals(other.Location) && StructureNormalOrientation.Equals(other.StructureNormalOrientation)); }
/// <summary> /// Copies the property values of the <paramref name="fromStructure"/> to the /// <see cref="StructureBase"/>. /// </summary> /// <param name="fromStructure">The <see cref="StructureBase"/> /// to get the property values from.</param> /// <exception cref="ArgumentNullException">Thrown when <paramref name="fromStructure"/> /// is <c>null</c>.</exception> protected void CopyProperties(StructureBase fromStructure) { if (fromStructure == null) { throw new ArgumentNullException(nameof(fromStructure)); } Name = fromStructure.Name; Location = new Point2D(fromStructure.Location); StructureNormalOrientation = fromStructure.StructureNormalOrientation; }