示例#1
0
        public bool Equals(DestinyItemSocketState input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     PlugHash == input.PlugHash ||
                     (PlugHash.Equals(input.PlugHash))
                     ) &&
                 (
                     IsEnabled == input.IsEnabled ||
                     (IsEnabled != null && IsEnabled.Equals(input.IsEnabled))
                 ) &&
                 (
                     IsVisible == input.IsVisible ||
                     (IsVisible != null && IsVisible.Equals(input.IsVisible))
                 ) &&
                 (
                     EnableFailIndexes == input.EnableFailIndexes ||
                     (EnableFailIndexes != null && EnableFailIndexes.SequenceEqual(input.EnableFailIndexes))
                 ));
        }
 public override int GetHashCode()
 {
     unchecked
     {
         return((IsEnabled.GetHashCode() * 397) ^ (Key != null ? Key.GetHashCode() : 0));
     }
 }
 public override int GetHashCode()
 {
     return(new object[] { OrganisationName, LoginId, FirstName, LastName, EmailAddress, Count }.GetCollectionHashCode()
            ^ MatchOrganisationNameExactly.GetHashCode()
            ^ IsEnabled.GetHashCode()
            ^ IsDisabled.GetHashCode()
            ^ SortOrder.GetHashCode());
 }
示例#4
0
        private void Update(EvaluationContext context)
        {
            if (!IsEnabled.GetValue(context))
            {
                return;
            }

            Result.Value = AudioAnalysis.FftGainBuffer.ToList();
        }
示例#5
0
        private void Update(EvaluationContext context)
        {
            if (!IsEnabled.GetValue(context))
            {
                return;
            }

            Result.Value = StreamPlayback.FftBuffer.ToList();
        }
示例#6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsScanEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ IsEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (Patterns != null ? Patterns.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#7
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (FirstName != null ? FirstName.GetHashCode() : 0);
         result = (result * 397) ^ (LastName != null ? LastName.GetHashCode() : 0);
         result = (result * 397) ^ IsEnabled.GetHashCode();
         result = (result * 397) ^ IsActivated.GetHashCode();
         return(result);
     }
 }
示例#8
0
        public override int GetHashCode()
        {
            var hashCode = -313755654;

            hashCode = hashCode * -1521134295 + SettingName.GetHashCode();
            hashCode = hashCode * -1521134295 + IsEnabled.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Value);

            hashCode = hashCode * -1521134295 + EqualityComparer <Subplatform> .Default.GetHashCode(Subplatform);

            return(hashCode);
        }
示例#9
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = IsEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ IsBlurEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ IsDilateEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ Color.GetHashCode();
         hashCode = (hashCode * 397) ^ Blur.GetHashCode();
         hashCode = (hashCode * 397) ^ Dilate.GetHashCode();
         return(hashCode);
     }
 }
示例#10
0
        public override int GetHashCode()
        {
            var hashCode = -1633517011;

            hashCode = (hashCode * -1521134295) + _id.GetHashCode();
            hashCode = (hashCode * -1521134295) + EqualityComparer <string> .Default.GetHashCode(_firstName);

            hashCode = (hashCode * -1521134295) + EqualityComparer <string> .Default.GetHashCode(_lastName);

            hashCode = (hashCode * -1521134295) + EqualityComparer <AccountType> .Default.GetHashCode(_accountType);

            hashCode = (hashCode * -1521134295) + Balance.GetHashCode();
            hashCode = (hashCode * -1521134295) + IsEnabled.GetHashCode();
            return(hashCode);
        }
示例#11
0
        public override void WriteXml(XmlWriter writer)
        {
            base.WriteXml(writer);

            //{ Begin Creation info : You need not deserialize this block in ReadXml().
            // These are automatically serialized in Node.ReadXml().
            writer.WriteAttributeString("ViewModelType", ViewModel.GetType().AssemblyQualifiedName);
            writer.WriteAttributeString("Owner", Owner.Guid.ToString());
            writer.WriteAttributeString("IsInput", IsInput.ToString());
            //} End Creation Info.

            writer.WriteAttributeString("Name", Name);
            writer.WriteAttributeString("DisplayName", DisplayName);
            writer.WriteAttributeString("AllowMultipleInput", AllowMultipleInput.ToString());
            writer.WriteAttributeString("AllowMultipleOutput", AllowMultipleOutput.ToString());
            writer.WriteAttributeString("IsPortEnabled", IsPortEnabled.ToString());
            writer.WriteAttributeString("IsEnabled", IsEnabled.ToString());
        }
示例#12
0
 protected StrategyBase(IsEnabled function)
 {
     this.function = function;
 }