示例#1
0
        public static Node <T[], TNewOutput> ForArray <T, TNewOutput>(this SinkNode <T> thisNode, Func <T[], TNewOutput[]> processOutputsFunc)
        {
            var node = new FuncNode <T[], TNewOutput>(processOutputsFunc);

            node.SetInput(thisNode);
            return(node);
        }
示例#2
0
文件: Node.cs 项目: zavolokas/Grapute
        public SinkNode <TOutput> CollectAllOutputsToOneArray()
        {
            var node = new SinkNode <TOutput>();

            node.SetInput(this);
            return(node);
        }
示例#3
0
 public static Node <T[], TNewOutput> ForArray <T, TNewOutput>(this SinkNode <T> thisNode, Node <T[], TNewOutput> processOutputsNode)
 {
     processOutputsNode.SetInput(thisNode);
     return(processOutputsNode);
 }