/// <summary> /// Processes the result, /// </summary> /// <typeparam name="T"></typeparam> /// <typeparam name="TR"></typeparam> /// <param name="pipeResult"></param> /// <param name="select"></param> /// <returns></returns> public static PipeResult <TR> ProcessAndTransform <T, TR>(this PipeResult <T> pipeResult, Func <T, TR> select) => MakePipeline(pipeResult, @select);
private static PipeResult <TR> MakePipeline <T, TR>(this PipeResult <T> type, Func <T, TR> select) => new PipeResult <TR>(@select(type.Finish())) { Errors = type.Errors };