C# Class Westwind.RazorHosting.HelperResult

Helped class used by Razor to render generated code.
Inheritance: IHtmlString
Afficher le fichier Open project: RickStrahl/Westwind.RazorHosting

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

ToHtmlString() public méthode

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

ToString() public méthode

Returns a string that represents the current HelperResult.
public ToString ( ) : string
Résultat string

WriteTo() public méthode

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.
Résultat void

WriteTo() public méthode

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
Résultat void