A utility class to facilitate composition and deomposition of distinguished names DNs. Specifies methods for manipulating a distinguished name DN and a relative distinguished name RDN.
Esempio n. 1
0
 /// <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)));
 }
Esempio n. 2
0
 /// <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)));
 }