/// <summary>
 /// Two DnsResourceDataTransactionSignature are equal iff their algorithm time signed, fudge, message authentication code, original ID, error
 /// and other fields are equal.
 /// </summary>
 public bool Equals(DnsResourceDataTransactionSignature other)
 {
     return(other != null &&
            Algorithm.Equals(other.Algorithm) &&
            TimeSigned.Equals(other.TimeSigned) &&
            Fudge.Equals(other.Fudge) &&
            MessageAuthenticationCode.Equals(other.MessageAuthenticationCode) &&
            OriginalId.Equals(other.OriginalId) &&
            Error.Equals(other.Error) &&
            Other.Equals(other.Other));
 }
Пример #2
0
 /// <summary>
 /// 生成自定义数据,放入购物车
 /// </summary>
 /// <returns></returns>
 public virtual string GetTagData()
 {
     return(OriginalId.ToString());
 }
Пример #3
0
 public override int GetHashCode()
 {
     return((IdWithMotif != null ? IdWithMotif.GetHashCode() : OriginalId.GetHashCode()) ^ ModificationType.GetHashCode());
 }