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
Показать файл Открыть проект

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

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