public override int GetHashCode() { unchecked { var hashCode = (Nome != null ? Nome.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Locazione != null ? Locazione.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IndirizzoDiRete != null ? IndirizzoDiRete.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Porta; hashCode = (hashCode * 397) ^ (ImprontaChiavePubblica != null ? ImprontaChiavePubblica.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Id.GetHashCode(); return(hashCode); } }