Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Labels != null ? Labels.GetHashCode() : 0) ^ FilterType.GetHashCode() ^ Open.GetHashCode() ^ (Ascending != null ? Ascending.GetHashCode() : 0) ^ SortType.GetHashCode());
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            var hashCode = 1500372613;

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

            return(hashCode);
        }
Exemplo n.º 3
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);
            }
        }
Exemplo n.º 4
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>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = FilterType.GetHashCode();
         result = (result * 397) ^ ApplyToFileName.GetHashCode();
         result = (result * 397) ^ ApplyToPath.GetHashCode();
         result = (result * 397) ^ ApplyToFile.GetHashCode();
         result = (result * 397) ^ ApplyToDirectory.GetHashCode();
         result = (result * 397) ^ CaseSensitive.GetHashCode();
         result = (result * 397) ^ (_text != null ? _text.GetHashCode() : 0);
         return(result);
     }
 }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     return(_type.GetHashCode() ^ _pattern.GetHashCode());
 }
Exemplo n.º 6
0
 public override int GetHashCode()
 {
     return(FilterType.GetHashCode());
 }
Exemplo n.º 7
0
 public override int GetHashCode()
 {
     unchecked {
         return(((ControllerType != null ? ControllerType.GetHashCode() : 0) * 397) ^ (FilterType != null ? FilterType.GetHashCode() : 0));
     }
 }