public bool Equals(DnsNameRepresentation dnsName) { bool flag = false; if (this.unicodeName == null || dnsName.unicodeName == null) { if (this.unicodeName == null && dnsName.unicodeName == null) { flag = true; } } else { if (string.Equals(this.unicodeName, dnsName.unicodeName, StringComparison.OrdinalIgnoreCase)) { flag = true; } } return flag; }
public bool Equals(DnsNameRepresentation dnsName) { bool flag = false; if (this.unicodeName == null || dnsName.unicodeName == null) { if (this.unicodeName == null && dnsName.unicodeName == null) { flag = true; } } else { if (string.Equals(this.unicodeName, dnsName.unicodeName, StringComparison.OrdinalIgnoreCase)) { flag = true; } } return(flag); }
/// <summary> /// value comparison /// </summary> public bool Equals(DnsNameRepresentation dnsName) { bool match = false; if (_unicodeName != null && dnsName._unicodeName != null) { if (String.Equals( _unicodeName, dnsName._unicodeName, StringComparison.OrdinalIgnoreCase)) { match = true; } } else if (_unicodeName == null && dnsName._unicodeName == null) { match = true; } return match; }