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