C# 클래스 Westwind.RazorHosting.HelperResult

Helped class used by Razor to render generated code.
상속: IHtmlString
파일 보기 프로젝트 열기: RickStrahl/Westwind.RazorHosting

공개 메소드들

메소드 설명
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