コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Tag != null ? Tag.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Priorita;
         hashCode = (hashCode * 397) ^ (Messaggio != null ? Messaggio.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();
         hashCode = (hashCode * 397) ^ (Stazione != null ? Stazione.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         return(hashCode);
     }
 }