Ejemplo 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);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Include != null ? Include.GetHashCode() : 0) * 397) ^ (Exclude != null ? Exclude.GetHashCode() : 0));
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Exclude != null ? Exclude.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Include != null ? Include.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Recurse.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Include != null ? Include.GetHashCode() : 0);
         result = (result * 397) ^ (Exclude != null ? Exclude.GetHashCode() : 0);
         result = (result * 397) ^ DeepSearch.GetHashCode();
         return(result);
     }
 }
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = Include?.GetHashCode() ?? 0;
         result = (result * 397) ^ (Exclude?.GetHashCode() ?? 0);
         result = (result * 397) ^ DeepSearch.GetHashCode();
         return(result);
     }
 }
Ejemplo n.º 6
0
 public override int GetHashCode()
 {
     unchecked // Overflow is fine
     {
         int hash = 17;
         hash = hash * 23 + (Include != null ? Include.GetHashCode() : 0);
         hash = hash * 23 + (Tag != null ? Tag.GetHashCode() : 0);
         return(hash);
     }
 }
Ejemplo n.º 7
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (Exclude != null ? Exclude.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Include != null ? Include.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Remove != null ? Remove.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 8
0
        /// <summary>
        ///     Object hash code
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = FilterType != null?FilterType.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (Include != null ? Include.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (Exclude != null ? Exclude.GetHashCode() : 0);
                return(hashCode);
            }
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Name?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Image?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Url?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Tags?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ Modified.GetHashCode();
         hashCode = (hashCode * 397) ^ (SpecificationVersion?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Apis?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Include?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Maintainers?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Image != null ? Image.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Url != null ? Url.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Tags != null ? Tags.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ Modified.GetHashCode();
         hashCode = (hashCode * 397) ^ (SpecificationVersion != null ? SpecificationVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Apis != null ? Apis.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Include != null ? Include.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Maintainers != null ? Maintainers.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 11
0
 public override int GetHashCode()
 {
     return(Include?.GetHashCode() ?? base.GetHashCode());
 }
Ejemplo n.º 12
0
 public override int GetHashCode()
 {
     return(((Include?.GetHashCode() ?? 0) * 397 ^ (Exclude?.GetHashCode() ?? 0)) * 397 ^ DeepSearch.GetHashCode());
 }