コード例 #1
0
ファイル: ScopeCollection.cs プロジェクト: ummerland/FireBall
        // Operations (type-safe ICloneable)

        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ScopeCollection Clone()
        {
            ScopeCollection tc = new ScopeCollection();

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

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