//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:N.N.NNNNN.N
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace TestOutput {
using System;

public class Templates {
#line hidden
#line 1 "Templates.cshtml"
            
    public HelperResult Repeat(int times, Func<int, object> template) {
        return new HelperResult((writer) => {
            for(int i = 0; i < times; i++) {
                ((HelperResult)template(i)).WriteTo(writer);
            }
        });
    }

#line default
#line hidden

public Templates() {
}
public override void Execute() {
WriteLiteral("\r\n");


#line 11 "Templates.cshtml"
  
    Func<dynamic, object> foo = 

#line default
#line hidden
item => new Template(__razor_template_writer => {

WriteLiteralTo(__razor_template_writer, "This works ");


#line 12 "Templates.cshtml"
                  WriteTo(__razor_template_writer, item);


#line default
#line hidden
WriteLiteralTo(__razor_template_writer, "!");

})

#line 12 "Templates.cshtml"
                                                               ;
    

#line default
#line hidden

#line 13 "Templates.cshtml"
Write(foo(""));


#line default
#line hidden

#line 13 "Templates.cshtml"
            


#line default
#line hidden
WriteLiteral("\r\n\r\n<ul>\r\n");


#line 17 "Templates.cshtml"
Write(Repeat(10, item => new Template(__razor_template_writer => {


#line default
#line hidden
WriteLiteralTo(__razor_template_writer, "<li>Item #");


#line 17 "Templates.cshtml"
WriteTo(__razor_template_writer, item);


#line default
#line hidden
WriteLiteralTo(__razor_template_writer, "</li>");


#line 17 "Templates.cshtml"
                                })));


#line default
#line hidden
WriteLiteral("\r\n</ul>\r\n\r\n<p>\r\n");


#line 21 "Templates.cshtml"
Write(Repeat(10,
    item => new Template(__razor_template_writer => {


#line default
#line hidden
WriteLiteralTo(__razor_template_writer, " This is line#");


#line 22 "Templates.cshtml"
WriteTo(__razor_template_writer, item);


#line default
#line hidden
WriteLiteralTo(__razor_template_writer, " of markup<br/>\r\n");


#line 23 "Templates.cshtml"
})));


#line default
#line hidden
WriteLiteral("\r\n</p>\r\n\r\n<ul>\r\n");

WriteLiteral("    ");


#line 27 "Templates.cshtml"
Write(Repeat(10, item => new Template(__razor_template_writer => {


#line default
#line hidden
WriteLiteralTo(__razor_template_writer, "<li>\r\n        Item #");


#line 28 "Templates.cshtml"
WriteTo(__razor_template_writer, item);


#line default
#line hidden
WriteLiteralTo(__razor_template_writer, "\r\n");


#line 29 "Templates.cshtml"
        

#line default
#line hidden

#line 29 "Templates.cshtml"
          var parent = item;

#line default
#line hidden
WriteLiteralTo(__razor_template_writer, "\r\n        <ul>\r\n            <li>Child Items... ?</li>\r\n            ");

WriteLiteralTo(__razor_template_writer, "\r\n        </ul>\r\n    </li>");


#line 34 "Templates.cshtml"
       })));


#line default
#line hidden
WriteLiteral("\r\n</ul> ");

}
}
}
