/// <summary> /// Initializes a new instance of the <see cref="LdapEntry" /> class. /// Constructs a new entry with the specified distinguished name and set /// of attributes. /// </summary> /// <param name="dn">The distinguished name of the new entry. The /// value is not validated. An invalid distinguished /// name will cause operations using this entry to fail.</param> /// <param name="attrs">The initial set of attributes assigned to the /// entry.</param> public LdapEntry(string dn = null, LdapAttributeSet attrs = null) { DN = dn ?? string.Empty; _attrs = attrs ?? new LdapAttributeSet(); }