public Block <TOut> Transform(Block <TIn> source)
        {
            var target = new Document <TOut> [source.Documents.Count];

            For(0, target.Length, index => target[index] = documentTransformer.Transform(source.Documents[index]));
            return(Block <TOut> .Make(source.Metadata.Id, target));
        }
Example #2
0
        public Block <TOut> Transform(Block <TIn> source)
        {
            var target = source.Documents.Select(d => documentTransformer.Transform(d)).ToList();

            return(Block <TOut> .Make(source.Metadata.Id, target));
        }