Esempio n. 1
0
 /// <summary>
 /// Two DnsResourceDataKey are equal iff their authentication prohibited, confidentiality prohibited, experimental, user associated, IPSec, email,
 /// name type, signatory, protocol, algorithm, flags extension and public key fields are equal.
 /// </summary>
 public bool Equals(DnsResourceDataKey other)
 {
     return(other != null &&
            AuthenticationProhibited.Equals(other.AuthenticationProhibited) &&
            ConfidentialityProhibited.Equals(other.ConfidentialityProhibited) &&
            Experimental.Equals(other.Experimental) &&
            UserAssociated.Equals(other.UserAssociated) &&
            IpSec.Equals(other.IpSec) &&
            Email.Equals(other.Email) &&
            NameType.Equals(other.NameType) &&
            Signatory.Equals(other.Signatory) &&
            Protocol.Equals(other.Protocol) &&
            Algorithm.Equals(other.Algorithm) &&
            (FlagsExtension.HasValue
                 ? other.FlagsExtension.HasValue && FlagsExtension.Value.Equals(other.FlagsExtension.Value)
                 : !other.FlagsExtension.HasValue) &&
            PublicKey.Equals(other.PublicKey));
 }