Esempio n. 1
0
        protected static Express2 <NewType> CreateExpression <NewType>(AbstractBlock inBlock)
        {
            var retexpr = new Express2 <NewType>();

            ExprTree.CreateComponent(retexpr, inBlock);
            return(retexpr);
        }
Esempio n. 2
0
        private void Init(string name)
        {
            adapter = new BaseInputAdapter();
            LambdaBlock <object> b = Express2.BlockFactory.CreateLambdaBlock <object>(x => true, name);

            ExprTree.CreateComponent(this, b);
            adapter.Attach(this);
        }
Esempio n. 3
0
        public YoloEnumerable()
        {
            outputBlock = BlockFactory.CreateLambdaBlock <CollectionOp <T> >(x => true, "YoloEnumerableOutput");
            firstBlock  = BlockFactory.CreateCollectionBlock <T>(outputBlock);

            ExprTree.CreateComponent(this, firstBlock);

            ExprTree.CreateIndependentBlock(outputBlock);
            input.Attach(this);
            Yolo.DumpGraph();
        }
Esempio n. 4
0
 private void Init(string name)
 {
     exprblock = Express2.BlockFactory.CreateLambdaBlock <object>(x => true, name);
     ExprTree.CreateComponent(this, exprblock);
 }