RazorEngine<TBaseTemplateType>.AddNamespace

Method to add namespaces to the compiled code. Add namespaces to minimize explicit namespace requirements in your Razor template code.

Make sure that any required assemblies are loaded first.

public void AddNamespace(String[] additionalNamespaces)

Parameters

additionalNamespaces
additional namespaces

Overloads:


See also:

Class RazorEngine

© West Wind Technologies, 2018 • Updated: 06/07/18
Comment or report problem with topic