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