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