private string Run(ParseList parseList, IPropertyBag bag) { IInterpretContext ctx = new InterpretContext(); ctx.Bag = bag; ctx.ParseList = parseList; int listLength = ctx.ParseList.Count; while (ctx.ListPosition < listLength) { // go through the parseList and act on each item we find MarkupBase markupItem = parseList[ctx.ListPosition]; markupItem.Interpret(ctx); } return(ctx.Builder.ToString()); }
private string Run(ParseList parseList, IPropertyBag bag) { IInterpretContext ctx = new InterpretContext(); ctx.Bag = bag; ctx.ParseList = parseList; int listLength = ctx.ParseList.Count; while (ctx.ListPosition < listLength) { // go through the parseList and act on each item we find MarkupBase markupItem = parseList[ctx.ListPosition]; markupItem.Interpret(ctx); } return ctx.Builder.ToString(); }