Exemplo n.º 1
0
 protected override void Visit(RenderSectionChunk chunk)
 {
     var outer = ExitRenderPartial();
     if (string.IsNullOrEmpty(chunk.Name))
     {
         Accept(outer.Body);
     }
     else if (outer.Sections.ContainsKey(chunk.Name))
     {
         Accept(outer.Sections[chunk.Name]);
     }
     else
     {
         Accept(chunk.Default);
     }
     EnterRenderPartial(outer);
 }
Exemplo n.º 2
0
 protected override void Visit(RenderSectionChunk chunk)
 {
     if (string.IsNullOrEmpty(chunk.Name))
     {
         Accept(OuterPartial.Body);
     }
     else if (OuterPartial.Sections.ContainsKey(chunk.Name))
     {
         Accept(OuterPartial.Sections[chunk.Name]);
     }
     else
     {
         Accept(chunk.Default);
     }
 }