示例#1
0
		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;
		}
示例#2
0
        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);
        }
示例#3
0
        /// <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;
        }