Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = 493172489;

            hashCode = hashCode * -1521134295 + PatternType.GetHashCode();
            hashCode = hashCode * -1521134295 + Color.GetHashCode();
            return(hashCode);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Pattern != null ? Pattern.GetHashCode() : 0);
         result = (result * 397) ^ DocType.GetHashCode();
         result = (result * 397) ^ PatternType.GetHashCode();
         result = (result * 397) ^ Enabled.GetHashCode();
         return(result);
     }
 }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = 17;

                hash = hash * 23 + PatternType.GetHashCode();
                hash = hash * 23 + ForegroundColor?.GetHashCode() ?? 0;
                hash = hash * 23 + BackgroundColor?.GetHashCode() ?? 0;

                return(hash);
            }
        }
Ejemplo n.º 4
0
            public override int GetHashCode()
            {
                if (!Id.HasValue)
                {
                    this.Id =
                        (p1 != null ? p1.GetHashCode() : 0) ^
                        (p2 != null ? p2.GetHashCode() : 0) ^
                        (Nullable ? 1 : 0) ^
                        (Name != null ? Name.GetHashCode() : 0) ^
                        (Namespace != null ? Namespace.GetHashCode() : 0) ^
                        Type.GetHashCode();
                }

                return(Id.Value);
            }
Ejemplo n.º 5
0
 public override int GetHashCode()
 {
     return(PatternType.GetHashCode() ^ (PatternType == EPatternType.EndOfInput ? 0 : Value.GetHashCode()));
 }