Esempio n. 1
0
        public override int GetHashCode()
        {
            var hash = 23;

            hash = hash * 31 + MatchCase.GetHashCode();
            hash = hash * 31 + MatchWholeWord.GetHashCode();
            hash = hash * 31 + IsRegex.GetHashCode();
            hash = hash * 31 + UseExcludeSettingsAndIgnoreFiles.GetHashCode();
            if (Query != null)
            {
                hash = hash * 31 + Query.GetHashCode();
            }
            if (WorkingDirectory != null)
            {
                hash = hash * 31 + WorkingDirectory.GetHashCode();
            }
            if (Include != null)
            {
                hash = hash * 31 + Include.GetHashCode();
            }
            if (Exclude != null)
            {
                hash = hash * 31 + Exclude.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
 public override int GetHashCode()
 {
     return((WorkingDirectory?.GetHashCode() ?? 0) ^
            (Command?.GetHashCode() ?? 0) ^
            (Arguments?.GetHashCode() ?? 0) ^
            ((int)ErrorDetecting).GetHashCode());
 }
 public override int GetHashCode()
 => IconLocation.GetHashCode() ^
 TargetPath.GetHashCode() ^
 Arguments.GetHashCode() ^
 WorkingDirectory.GetHashCode() ^
 WindowStyle.GetHashCode() ^
 WindowStyle.GetHashCode() ^
 Description.GetHashCode() ^
 FullName.GetHashCode();
Esempio n. 4
0
        /// <summary>Serves as the default hash function.</summary>
        /// <returns>A hash code for the current object.</returns>
        public override int GetHashCode()
        {
            var hash = 1;

            hash ^= Id.GetHashCode();
            hash ^= ParentProcessId.GetHashCode();
            hash ^= Image.GetHashCode();
            hash ^= Name.GetHashCode();
            hash ^= CommandLine.GetHashCode();
            hash ^= WorkingDirectory.GetHashCode();
            hash ^= CreationDate.GetHashCode();
            hash ^= SessionId.GetHashCode();
            return(hash);
        }
Esempio n. 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ContainerImage.Length != 0)
            {
                hash ^= ContainerImage.GetHashCode();
            }
            if (Shell.Length != 0)
            {
                hash ^= Shell.GetHashCode();
            }
            if (WorkingDirectory.Length != 0)
            {
                hash ^= WorkingDirectory.GetHashCode();
            }
            hash ^= commands_.GetHashCode();
            if (When.Length != 0)
            {
                hash ^= When.GetHashCode();
            }
            hash ^= EnvVars.GetHashCode();
            if (AutoInjected != false)
            {
                hash ^= AutoInjected.GetHashCode();
            }
            if (Retries != 0L)
            {
                hash ^= Retries.GetHashCode();
            }
            hash ^= CustomProperties.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 6
0
 public override int GetHashCode()
 {
     return(ProjectHome.GetHashCode() ^
            WorkingDirectory.GetHashCode() ^
            InterpreterPath.GetHashCode());
 }
Esempio n. 7
0
        public override int GetHashCode()
        {
            int result = 17;

            unchecked
            {
                if (Parameters != null)
                {
                    result = (result * 31) + Parameters.GetHashCode();
                }

                result = (result * 31) + StartTime.GetHashCode();
                result = (result * 31) + EndTime.GetHashCode();
                if (CorrelationId != null)
                {
                    result = (result * 31) + CorrelationId.GetHashCode();
                }

                if (Machine != null)
                {
                    result = (result * 31) + Machine.GetHashCode();
                }

                if (Account != null)
                {
                    result = (result * 31) + Account.GetHashCode();
                }

                result = (result * 31) + ProcessId.GetHashCode();
                if (FileName != null)
                {
                    result = (result * 31) + FileName.GetHashCode();
                }

                if (WorkingDirectory != null)
                {
                    result = (result * 31) + WorkingDirectory.GetHashCode();
                }

                if (EnvironmentVariables != null)
                {
                    // Use xor for dictionaries to be order-independent.
                    int xor_0 = 0;
                    foreach (var value_0 in EnvironmentVariables)
                    {
                        xor_0 ^= value_0.Key.GetHashCode();
                        if (value_0.Value != null)
                        {
                            xor_0 ^= value_0.Value.GetHashCode();
                        }
                    }

                    result = (result * 31) + xor_0;
                }

                if (Properties != null)
                {
                    result = (result * 31) + Properties.GetHashCode();
                }

                if (Tags != null)
                {
                    foreach (var value_1 in Tags)
                    {
                        result = result * 31;
                        if (value_1 != null)
                        {
                            result = (result * 31) + value_1.GetHashCode();
                        }
                    }
                }
            }

            return(result);
        }
Esempio n. 8
0
 public override int GetHashCode()
 {
     return((WorkingDirectory.GetHashCode() * 0x100000) + (Executable.GetHashCode() * 0x1000) + Arguments.GetHashCode());
 }