예제 #1
0
 public override int GetHashCode()
 {
     return(Name.GetHashCode() ^
            Interval ^
            Source.GetHashCode() ^
            Intermedias.Aggregate(0, (sum, f) => sum ^ f.GetHashCode()) ^
            Sink.GetHashCode());
 }
예제 #2
0
        public bool Equals(JobDesc other)
        {
            if (other == null)
            {
                return(false);
            }

            if (Object.ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Name.Equals(other.Name) &&
                   Interval == other.Interval &&
                   Source.Equals(other.Source) &&
                   Intermedias.SequenceEqual(other.Intermedias) &&
                   Sink.Equals(other.Sink));
        }