Exemplo n.º 1
0
 public override int GetHashCode() => HashCodeGenerator.Of(Id);
Exemplo n.º 2
0
 public override int GetHashCode() =>
 HashCodeGenerator.Of(GetEqualityComponents()
                      .Aggregate(1, (current, obj) => (current * 23) + (obj?.GetHashCode() ?? 0)));