Пример #1
0
        /// <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
        /// <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;
        }