/// <summary> /// Gets a hashcode of all statistics combined. /// </summary> /// <returns>A hashcode.</returns> public override int GetHashCode() { // HashCode.Combine() is not available on all frameworks. return (PeersCount.GetHashCode() ^ DuplicatePeers.GetHashCode() ^ ConnectedPeers.GetHashCode() ^ TotalReceivedPackets.GetHashCode() ^ TotalReceivedData.GetHashCode() ^ TotalSentPackets.GetHashCode() ^ TotalSentData.GetHashCode()); }