Ejemplo n.º 1
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));
        }
Ejemplo n.º 2
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);