public void Add(CAttributeList attribs)
 {
     if (attribs != null)
     {
         list.AddRange(attribs.list);
     }
 }
        public CAttributeList getList()
        {
            if (list.Count == 0)
            {
                return(empty);
            }

            CAttributeList result = new CAttributeList();

            foreach (CAttribute attribute in list)
            {
                result.Add(attribute);
            }

            return(result);
        }
        public CAttributeList getList(String name)
        {
            if (list.Count == 0)
            {
                return(empty);
            }

            CAttributeList result = new CAttributeList();

            foreach (CAttribute attribute in list)
            {
                if (NameEquals(attribute.Name, name))
                {
                    result.Add(attribute);
                }
            }

            return(result);
        }