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); }
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; }