public override object Adapt(object fromObject)
        {
            this.AssertType<ForLoopExecutorDescriptorObject>(fromObject);

            ForLoopStateObject toObject = new ForLoopStateObject();
            toObject.ForStartPosition = ((ForLoopExecutorDescriptorObject)fromObject).ForStartPosition;
            toObject.ForEndPosition = ((ForLoopExecutorDescriptorObject)fromObject).ForEndPosition;
            toObject.ForIncrement = ((ForLoopExecutorDescriptorObject)fromObject).ForIncrement;

            return toObject;
        }
Ejemplo n.º 2
0
 public void SetState(ForLoopStateObject stateObject)
 {
     _forLoopStateObjectInstance = stateObject;
 }