Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = 0;
         for (int i = 0; i < Mixins.Count; i++)
         {
             hashCode = (hashCode * 397) ^ (Mixins[i]?.GetHashCode() ?? 0);
         }
         for (int i = 0; i < Macros.Count; i++)
         {
             hashCode = (hashCode * 397) ^ Macros[i].GetHashCode();
         }
         hashCode = (hashCode * 397) ^ Compositions.GetHashCode();
         return(hashCode);
     }
 }
 public int GetHashCode(Compositions <A> x) =>
 x.GetHashCode();