private static void WriteItems(XmlWriter writer, SectionNode section) { ComponentEvaluationScope scope = ComponentEvaluationScope.Current; var items = (IEnumerable)scope.ComponentNode.Parameters["source"]; foreach (object item in items) { scope.ViewParameters["item"] = item; WriteXml(writer, section.Nodes); } }
public ComponentEvaluationScope(ComponentNode componentNode) { _componentNode = componentNode; _previous = (ComponentEvaluationScope) Local.Data[CurrentComponentEvaluationScopeKey]; Local.Data[CurrentComponentEvaluationScopeKey] = this; }
public ComponentEvaluationScope(ComponentNode componentNode) { _componentNode = componentNode; _previous = (ComponentEvaluationScope)Local.Data[CurrentComponentEvaluationScopeKey]; Local.Data[CurrentComponentEvaluationScopeKey] = this; }