C# Класс Westwind.RazorHosting.HelperResult

Helped class used by Razor to render generated code.
Наследование: IHtmlString
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

HelperResult() публичный Метод

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.
Результат System

ToHtmlString() публичный Метод

Returns a HTML formatted string that represents the current HelperResult.
public ToHtmlString ( ) : string
Результат string

ToString() публичный Метод

Returns a string that represents the current HelperResult.
public ToString ( ) : string
Результат string

WriteTo() публичный Метод

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.
Результат void

WriteTo() публичный Метод

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
Результат void