Class TemplateRegistry
Default in-memory ITemplateRegistry implementation.
public sealed class TemplateRegistry : ITemplateRegistry
- Inheritance
-
TemplateRegistry
- Implements
- Inherited Members
Constructors
TemplateRegistry()
Initializes a new instance of the TemplateRegistry class.
public TemplateRegistry()
Methods
Contains(string)
Returns true when a template with the given name is registered.
public bool Contains(string name)
Parameters
namestring
Returns
Get(string)
Returns the content of a named template.
public string Get(string name)
Parameters
namestring
Returns
Register(string, string)
Registers a named template, replacing any existing template with the same name.
public void Register(string name, string content)