Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            IErrorTaskItem other = obj as IErrorTaskItem;

            if (other == null)
            {
                return(false);
            }

            return
                (AbstractTaskItem.Equals(this, other) &&
                 Id == other.Id &&
                 ProjectId == other.ProjectId &&
                 Severity == other.Severity);
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Hash.Combine(AbstractTaskItem.GetHashCode(this), Hash.Combine(Id.GetHashCode(), (int)Severity)));
 }