/// <summary> /// Returns the hash code value for this code signer. /// The hash code is generated using the signer's certificate path and the /// timestamp, if present. /// </summary> /// <returns> a hash code value for this code signer. </returns> public override int HashCode() { if (Myhash == -1) { if (Timestamp_Renamed == null) { Myhash = SignerCertPath_Renamed.HashCode(); } else { Myhash = SignerCertPath_Renamed.HashCode() + Timestamp_Renamed.HashCode(); } } return(Myhash); }
/// <summary> /// Returns the hash code value for this timestamp. /// The hash code is generated using the date and time of the timestamp /// and the TSA's certificate path. /// </summary> /// <returns> a hash code value for this timestamp. </returns> public override int HashCode() { if (Myhash == -1) { Myhash = Timestamp_Renamed.HashCode() + SignerCertPath_Renamed.HashCode(); } return(Myhash); }