C# Class MvcContrib.UI.BlockRenderer

Renders an Action delegate and captures all output to a string.
显示文件 Open project: Q42/XsltViewEngine Class Usage Examples

Public Methods

Method Description
BlockRenderer ( System.Web.HttpContextBase httpContext ) : System
Capture ( System.Action viewRenderer ) : string

Renders the action and returns a string.

Method Details

BlockRenderer() public method

public BlockRenderer ( System.Web.HttpContextBase httpContext ) : System
httpContext System.Web.HttpContextBase
return System

Capture() public method

Renders the action and returns a string.
public Capture ( System.Action viewRenderer ) : string
viewRenderer System.Action The delegate to render.
return string