/// <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)); }
/// <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);