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