/// <summary> /// Compares two service plans for equality. /// </summary> /// <param name="ParkingSpaceGroup">A service plan to compare with.</param> /// <returns>True if both match; False otherwise.</returns> public Boolean Equals(ParkingSpaceGroup ParkingSpaceGroup) { if ((Object)ParkingSpaceGroup == null) { return(false); } return(Id.Equals(ParkingSpaceGroup.Id)); }
/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="ParkingSpaceGroup">A service plan object to compare with.</param> public Int32 CompareTo(ParkingSpaceGroup ParkingSpaceGroup) { if ((Object)ParkingSpaceGroup == null) { throw new ArgumentNullException("The given service plan must not be null!"); } return(Id.CompareTo(ParkingSpaceGroup.Id)); }