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