Esempio n. 1
0
        public bool Equals(DestinyItemPlug input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PlugObjectives == input.PlugObjectives ||
                     (PlugObjectives != null && PlugObjectives.SequenceEqual(input.PlugObjectives))
                     ) &&
                 (
                     PlugItemHash == input.PlugItemHash ||
                     (PlugItemHash.Equals(input.PlugItemHash))
                 ) &&
                 (
                     CanInsert == input.CanInsert ||
                     (CanInsert != null && CanInsert.Equals(input.CanInsert))
                 ) &&
                 (
                     Enabled == input.Enabled ||
                     (Enabled != null && Enabled.Equals(input.Enabled))
                 ) &&
                 (
                     InsertFailIndexes == input.InsertFailIndexes ||
                     (InsertFailIndexes != null && InsertFailIndexes.SequenceEqual(input.InsertFailIndexes))
                 ) &&
                 (
                     EnableFailIndexes == input.EnableFailIndexes ||
                     (EnableFailIndexes != null && EnableFailIndexes.SequenceEqual(input.EnableFailIndexes))
                 ));
        }
        public bool Equals(DestinyItemIntrinsicSocketEntryDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PlugItemHash == input.PlugItemHash ||
                     (PlugItemHash.Equals(input.PlugItemHash))
                     ) &&
                 (
                     SocketTypeHash == input.SocketTypeHash ||
                     (SocketTypeHash.Equals(input.SocketTypeHash))
                 ) &&
                 (
                     DefaultVisible == input.DefaultVisible ||
                     (DefaultVisible != null && DefaultVisible.Equals(input.DefaultVisible))
                 ));
        }