コード例 #1
0
        // Operations (type-safe ICloneable)

        /// <summary>
        /// Clones the list
        /// </summary>
        /// <returns></returns>
        public ImageIndexCollection Clone()
        {
            ImageIndexCollection tc = new ImageIndexCollection();

            tc.AddRange(this);
            tc.Capacity  = this.m_array.Length;
            tc.m_version = this.m_version;
            return(tc);
        }
コード例 #2
0
ファイル: IntCollection.cs プロジェクト: bartKam/hardek
		// Operations (type-safe ICloneable)

		/// <summary>
		/// Clones the list
		/// </summary>
		/// <returns></returns>
		public ImageIndexCollection Clone()
		{
			ImageIndexCollection tc = new ImageIndexCollection();
			tc.AddRange(this);
			tc.Capacity = this.m_array.Length;
			tc.m_version = this.m_version;
			return tc;
		}