public YoloEnumerator(AbstractBlock output, BaseInputAdapter inputer) { CollectionOp <T> enumOp = new CollectionOp <T>(); enumOp.OpType = CollectionOpTypes.Enumerate; parentOutput = output; outputBlock = BlockFactory.CreateLambdaBlock <CollectionOp <T> >(x => { if (x.OpID == enumOp.OpID) { EnumOp = x; output.RemoveChild(outputBlock); } return(true); }, "YoloEnumerableOutput"); output.AddChild(outputBlock, new Filter <CollectionOp <T> >(null)); inputer.Send(enumOp); }
public void Detach(INewComponent component) { exprblock.RemoveChild(component.InputBlock); }