C# Class Westwind.RazorHosting.HelperResult

Helped class used by Razor to render generated code.
Inheritance: IHtmlString
Mostra file Open project: RickStrahl/Westwind.RazorHosting

Public Methods

Method Description
HelperResult ( Action action ) : System

Initializes a new instance of the HelperResult class, with the provided action.

ToHtmlString ( ) : string

Returns a HTML formatted string that represents the current HelperResult.

ToString ( ) : string

Returns a string that represents the current HelperResult.

WriteTo ( TextWriter writer ) : void

Writes the output of the HelperResult to the provided writer.

WriteTo ( TextWriter writer, object val ) : void

Writes the output of the HelperResult to the provided writer.

Method Details

HelperResult() public method

Initializes a new instance of the HelperResult class, with the provided action.
public HelperResult ( Action action ) : System
action Action The action that should be used to produce the result.
return System

ToHtmlString() public method

Returns a HTML formatted string that represents the current HelperResult.
public ToHtmlString ( ) : string
return string

ToString() public method

Returns a string that represents the current HelperResult.
public ToString ( ) : string
return string

WriteTo() public method

Writes the output of the HelperResult to the provided writer.
public WriteTo ( TextWriter writer ) : void
writer System.IO.TextWriter A instance that the output should be written to.
return void

WriteTo() public method

Writes the output of the HelperResult to the provided writer.
public WriteTo ( TextWriter writer, object val ) : void
writer System.IO.TextWriter A instance that the output should be written to.
val object
return void