C# 클래스 Masonry.Core.Hosting.EmbeddedViewGenerator

Adds default usings, sets an inherits clause and specifies the layout name
Modifies embedded views so that they works like any other views. This includes the following Include a @model directive if missing Add a @inherits directive Add any missing @using statements (MVC and ASP.NET dependencies)
상속: IViewGenerator
파일 보기 프로젝트 열기: DenisVuyka/Masonry

공개 메소드들

메소드 설명
EmbeddedViewGenerator ( ) : System.IO

Initializes a new instance of the EmbeddedViewGenerator class.

GenerateView ( string virtualPath, Stream stream ) : Stream

Modify the view

메소드 상세

EmbeddedViewGenerator() 공개 메소드

Initializes a new instance of the EmbeddedViewGenerator class.
public EmbeddedViewGenerator ( ) : System.IO
리턴 System.IO

GenerateView() 공개 메소드

Modify the view
public GenerateView ( string virtualPath, Stream stream ) : Stream
virtualPath string Path to view
stream System.IO.Stream Stream containing the original view
리턴 System.IO.Stream