using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Future.Contract { /// /// 迭代空间的公共基类,可以使用Continue和Break实现迭代控制 /// public abstract class LoopInstructBase : StructInstructBase { public ELoopState LoopState { get; internal set; } /// /// 执行迭代逻辑 /// /// 信息输出管道,可以向其中输出信息 /// protected sealed override InstructResult DoExecute(IEnumerable outChannels) { //if() return this.DoLoop(outChannels); } protected abstract InstructResult DoLoop(IEnumerable outChannels); } }