示例#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 RegexTextFilter();

            if (_filter != null)
                ret._filter = new Regex(_filter.ToString(), _regexOptions);

            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 RegexTextFilter();

            if (_filter != null)
            {
                ret._filter = new Regex(_filter.ToString(), _regexOptions);
            }

            return(ret);
        }