コード例 #1
0
ファイル: AttributeList.cs プロジェクト: hamoji/sprajax
		/// <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;
		}
コード例 #2
0
ファイル: ParseHTML.cs プロジェクト: wang128/Spider
        public AttributeList get()
        {
            AttributeList tmp = new AttributeList();

            foreach (Attribute x in List)
            {
                tmp.Add((Attribute)x.Clone());
            }
            return(tmp);
        }
コード例 #3
0
ファイル: AttributeList.cs プロジェクト: zhhoxi0113/sprajax
        /// <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);
        }
コード例 #4
0
ファイル: ParseHTML.cs プロジェクト: hamoji/sprajax
		public AttributeList GetTag()
		{
			AttributeList tag = new AttributeList();
			tag.Name = m_tag;

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

			return tag;
		}
コード例 #5
0
        public AttributeList GetTag()
        {
            AttributeList tag = new AttributeList();

            tag.Name = m_tag;

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

            return(tag);
        }