getrdnList() public method

Compares this DN to the specified DN to determine if they are equal.
public getrdnList ( ) : System.Collections.ArrayList
return System.Collections.ArrayList
Example #1
0
        public bool Equals(DN toDN)
        {
            ArrayList aList  = toDN.getrdnList();
            int       length = aList.Count;

            if (rdnList.Count != length)
            {
                return(false);
            }

            for (int i = 0; i < length; i++)
            {
                if (!((RDN)rdnList[i]).equals((RDN)toDN.getrdnList()[i]))
                {
                    return(false);
                }
            }
            return(true);
        }
Example #2
0
        public bool Equals(DN toDN)
        {
            System.Collections.ArrayList aList=toDN.getrdnList();
            int length = aList.Count;

            if (this.rdnList.Count != length)
                return false;

            for (int i = 0; i < length; i++)
            {
                if (!((RDN) rdnList[i]).equals((RDN) toDN.getrdnList()[i]))
                    return false;
            }
            return true;
        }