Esempio n. 1
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="NotificationMessageId1">A NotificationMessage identification.</param>
        /// <param name="NotificationMessageId2">Another NotificationMessage identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >(NotificationMessage NotificationMessageId1, NotificationMessage NotificationMessageId2)
        {
            if ((Object)NotificationMessageId1 == null)
            {
                throw new ArgumentNullException(nameof(NotificationMessageId1), "The given NotificationMessageId1 must not be null!");
            }

            return(NotificationMessageId1.CompareTo(NotificationMessageId2) > 0);
        }
Esempio n. 2
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="NotificationMessageId1">A NotificationMessage identification.</param>
        /// <param name="NotificationMessageId2">Another NotificationMessage identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator ==(NotificationMessage NotificationMessageId1, NotificationMessage NotificationMessageId2)
        {
            // If both are null, or both are same instance, return true.
            if (Object.ReferenceEquals(NotificationMessageId1, NotificationMessageId2))
            {
                return(true);
            }

            // If one is null, but not both, return false.
            if (((Object)NotificationMessageId1 == null) || ((Object)NotificationMessageId2 == null))
            {
                return(false);
            }

            return(NotificationMessageId1.Equals(NotificationMessageId2));
        }
Esempio n. 3
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="NotificationMessageId1">A notification message identification.</param>
        /// <param name="NotificationMessageId2">Another notification message identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator >=(NotificationMessage_Id NotificationMessageId1,
                                          NotificationMessage_Id NotificationMessageId2)

        => NotificationMessageId1.CompareTo(NotificationMessageId2) >= 0;
Esempio n. 4
0
        /// <summary>
        /// Compares two instances of this object.
        /// </summary>
        /// <param name="NotificationMessageId1">A notification message identification.</param>
        /// <param name="NotificationMessageId2">Another notification message identification.</param>
        /// <returns>true|false</returns>
        public static Boolean operator !=(NotificationMessage_Id NotificationMessageId1,
                                          NotificationMessage_Id NotificationMessageId2)

        => !NotificationMessageId1.Equals(NotificationMessageId2);