Novell.Directory.Ldap.LdapAttributeSet.AddAll C# (CSharp) Method

AddAll() public method

Adds all LdapAttribute objects in the specified collection to this collection.
public AddAll ( System c ) : bool
c System Collection of LdapAttribute objects. /// /// @throws ClassCastException occurs when an element in the /// collection is not of type LdapAttribute. /// ///
return bool
        public override bool AddAll(System.Collections.ICollection c)
        {
            bool setChanged = false;
            System.Collections.IEnumerator i = c.GetEnumerator();

            while (i.MoveNext())
            {
                // we must enforce that everything in c is an LdapAttribute
                // add will return true if the attribute was added
                if (this.Add(i.Current))
                {
                    setChanged = true;
                }
            }
            return setChanged;
        }