/// <summary> Compares this object with the specified object for order. /// /// Ordering is determined by comparing normalized DN values /// (see {@link LdapEntry#getDN() } and /// {@link LdapDN#normalize(java.lang.String)}) using the /// compareTo method of the String class. /// /// </summary> /// <param name="entry"> Entry to compare to /// /// </param> /// <returns> A negative integer, zero, or a positive integer as this /// object is less than, equal to, or greater than the specified object. /// </returns> public virtual int CompareTo(System.Object entry) { return(LdapDN.normalize(this.dn).CompareTo(LdapDN.normalize(((LdapEntry)entry).dn))); }
/// <summary> /// Compares this object with the specified object for order. /// Ordering is determined by comparing normalized DN values /// (see {@link LdapEntry#getDN() } and /// {@link LdapDN#normalize(java.lang.String)}) using the /// compareTo method of the String class. /// </summary> /// <param name="entry"> /// Entry to compare to /// </param> /// <returns> /// A negative integer, zero, or a positive integer as this /// object is less than, equal to, or greater than the specified object. /// </returns> public virtual int CompareTo(object entry) { return(LdapDN.normalize(dn).CompareTo(LdapDN.normalize(((LdapEntry)entry).dn))); }