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