Right now if you have peer in a list and call List.Contains(Peer) it will cause GC allocations. Implementing IEquatable on the Peer struct will resolve this issue. See https://medium.com/@semuserable/c-journey-into-struct-equality-comparison-deep-dive-9693f74562f1
Right now if you have peer in a list and call List.Contains(Peer) it will cause GC allocations. Implementing IEquatable on the Peer struct will resolve this issue. See https://medium.com/@semuserable/c-journey-into-struct-equality-comparison-deep-dive-9693f74562f1