Example #1
0
        /// <summary>
        /// Make an exact copy of this object using the cloneable
        /// interface.
        /// </summary>
        /// <returns>A new object that is a clone of the specified
        /// object.</returns>
        public override Object Clone()
        {
            AttributeList rtn = new AttributeList();

            for (int i = 0; i < m_list.Count; i++)
            {
                rtn.Add((Attribute)this[i].Clone());
            }

            return(rtn);
        }
Example #2
0
        public AttributeList GetTag()
        {
            AttributeList tag = new AttributeList();
            tag.Name = M_tag;

            foreach (Attribute x in List)
            {
                tag.Add((Attribute) x.Clone());
            }

            return tag;
        }
Example #3
0
        public AttributeList GetTag()
        {
            AttributeList tag = new AttributeList();

            tag.Name = M_tag;

            foreach (Attribute x in List)
            {
                tag.Add((Attribute)x.Clone());
            }

            return(tag);
        }
Example #4
0
        /// <summary>
        /// Make an exact copy of this object using the cloneable
        /// interface.
        /// </summary>
        /// <returns>A new object that is a clone of the specified
        /// object.</returns>
        public override Object Clone()
        {
            AttributeList rtn = new AttributeList();

            for (int i = 0; i < m_list.Count; i++)
                rtn.Add((Attribute) this[i].Clone());

            return rtn;
        }