コード例 #1
0
        /// <summary>
        /// Compares two SocketOutlet for equality.
        /// </summary>
        /// <param name="SocketOutlet">An SocketOutlet to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(SocketOutlet SocketOutlet)
        {
            if ((Object)SocketOutlet == null)
            {
                return(false);
            }

            return(Plug.Equals(SocketOutlet.Plug) &&
                   Lockable.Equals(SocketOutlet.Lockable) &&
                   CableAttached.Equals(SocketOutlet.CableAttached) &&
                   CableLength.Equals(SocketOutlet.CableLength));
        }
コード例 #2
0
        public bool Equals(DestinyItemComponent input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     ItemHash == input.ItemHash ||
                     (ItemHash.Equals(input.ItemHash))
                     ) &&
                 (
                     ItemInstanceId == input.ItemInstanceId ||
                     (ItemInstanceId.Equals(input.ItemInstanceId))
                 ) &&
                 (
                     Quantity == input.Quantity ||
                     (Quantity.Equals(input.Quantity))
                 ) &&
                 (
                     BindStatus == input.BindStatus ||
                     (BindStatus != null && BindStatus.Equals(input.BindStatus))
                 ) &&
                 (
                     Location == input.Location ||
                     (Location != null && Location.Equals(input.Location))
                 ) &&
                 (
                     BucketHash == input.BucketHash ||
                     (BucketHash.Equals(input.BucketHash))
                 ) &&
                 (
                     TransferStatus == input.TransferStatus ||
                     (TransferStatus != null && TransferStatus.Equals(input.TransferStatus))
                 ) &&
                 (
                     Lockable == input.Lockable ||
                     (Lockable != null && Lockable.Equals(input.Lockable))
                 ) &&
                 (
                     State == input.State ||
                     (State != null && State.Equals(input.State))
                 ) &&
                 (
                     OverrideStyleItemHash == input.OverrideStyleItemHash ||
                     (OverrideStyleItemHash.Equals(input.OverrideStyleItemHash))
                 ) &&
                 (
                     ExpirationDate == input.ExpirationDate ||
                     (ExpirationDate != null && ExpirationDate.Equals(input.ExpirationDate))
                 ) &&
                 (
                     IsWrapper == input.IsWrapper ||
                     (IsWrapper != null && IsWrapper.Equals(input.IsWrapper))
                 ) &&
                 (
                     TooltipNotificationIndexes == input.TooltipNotificationIndexes ||
                     (TooltipNotificationIndexes != null && TooltipNotificationIndexes.SequenceEqual(input.TooltipNotificationIndexes))
                 ) &&
                 (
                     MetricHash == input.MetricHash ||
                     (MetricHash.Equals(input.MetricHash))
                 ) &&
                 (
                     MetricObjective == input.MetricObjective ||
                     (MetricObjective != null && MetricObjective.Equals(input.MetricObjective))
                 ) &&
                 (
                     VersionNumber == input.VersionNumber ||
                     (VersionNumber.Equals(input.VersionNumber))
                 ) &&
                 (
                     ItemValueVisibility == input.ItemValueVisibility ||
                     (ItemValueVisibility != null && ItemValueVisibility.SequenceEqual(input.ItemValueVisibility))
                 ));
        }