public static IFilterProcessor CreateTrimProcessor(string toRegex, string fromRegex, string trimMiddle) { // For now, trim the to, then the from IFilterProcessor trimTo = new TrimToProcessor(toRegex) { DownstreamMember = new TrimFromProcessor(fromRegex) { DownstreamMember = new TrimMiddleProcessor(trimMiddle) } }; return trimTo; }
public static IFilterProcessor CreateTrimProcessor(string toRegex, string fromRegex, string trimMiddle) { // For now, trim the to, then the from IFilterProcessor trimTo = new TrimToProcessor(toRegex) { DownstreamMember = new TrimFromProcessor(fromRegex) { DownstreamMember = new TrimMiddleProcessor(trimMiddle) } }; return(trimTo); }