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