コード例 #1
0
ファイル: BasicTextFilter.cs プロジェクト: wtfcolt/game
        /// <summary>
        /// When overridden in the derived class, creates a deep copy of this filter.
        /// </summary>
        /// <returns>The deep copy of this filter.</returns>
        protected override TextFilter DeepCopyInternal()
        {
            var ret = new BasicTextFilter();

            if (_filterPieces != null)
            {
                ret._filterPieces = new string[_filterPieces.Length];
                _filterPieces.CopyTo(ret._filterPieces, 0);
            }

            return(ret);
        }
コード例 #2
0
ファイル: BasicTextFilter.cs プロジェクト: wtfcolt/game
        /// <summary>
        /// When overridden in the derived class, creates a deep copy of this filter.
        /// </summary>
        /// <returns>The deep copy of this filter.</returns>
        protected override TextFilter DeepCopyInternal()
        {
            var ret = new BasicTextFilter();

            if (_filterPieces != null)
            {
                ret._filterPieces = new string[_filterPieces.Length];
                _filterPieces.CopyTo(ret._filterPieces, 0);
            }

            return ret;
        }