/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="EVPS_Id1">A EVPS_Id.</param> /// <param name="EVPS_Id2">Another EVPS_Id.</param> /// <returns>true|false</returns> public static Boolean operator >(ParkingSpot_Id EVPS_Id1, ParkingSpot_Id EVPS_Id2) { if ((Object)EVPS_Id1 == null) { throw new ArgumentNullException("The given EVPS_Id1 must not be null!"); } return(EVPS_Id1.CompareTo(EVPS_Id2) > 0); }
/// <summary> /// Compares two instances of this object. /// </summary> /// <param name="EVPS_Id1">A EVPS_Id.</param> /// <param name="EVPS_Id2">Another EVPS_Id.</param> /// <returns>true|false</returns> public static Boolean operator ==(ParkingSpot_Id EVPS_Id1, ParkingSpot_Id EVPS_Id2) { // If both are null, or both are same instance, return true. if (Object.ReferenceEquals(EVPS_Id1, EVPS_Id2)) { return(true); } // If one is null, but not both, return false. if (((Object)EVPS_Id1 == null) || ((Object)EVPS_Id2 == null)) { return(false); } return(EVPS_Id1.Equals(EVPS_Id2)); }