コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Certificate.GetHashCode() * 397) ^ (DisplayId != null ? DisplayId.GetHashCode() : 0));
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (DisplayId != null ? DisplayId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AccessToken != null ? AccessToken.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AccessTokenExpiration.GetHashCode();
         hashCode = (hashCode * 397) ^ (RefreshToken != null ? RefreshToken.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MailAddress != null ? MailAddress.GetHashCode() : 0);
         return(hashCode);
     }
 }