/// <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); }
/// <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; }