public override int GetHashCode()
        {
            if (Attribute == null && Id == null)
            {
                return(31 * Distributed.GetHashCode());
            }

            if (Attribute == null)
            {
                return(31 * Distributed.GetHashCode() + Id !.GetHashCode());
            }

            if (Id == null)
            {
                return(31 * Attribute.GetHashCode() + Distributed.GetHashCode());
            }

            return(31 * Attribute.GetHashCode() + Distributed.GetHashCode() + Id.GetHashCode());
        }
Ejemplo n.º 2
0
 public override int GetHashCode() => 31 *Attribute.GetHashCode() + Distributed.GetHashCode() + Id.GetHashCode();