protected override TemplateGroup LoadTemplates()
{
// override the superclass behavior to put all C# templates in the same folder
TemplateGroup result = new TemplateGroupFile(
Path.Combine(
Path.GetDirectoryName(typeof(AntlrTool).GetTypeInfo().Assembly.Location),
Path.Combine(CodeGenerator.TEMPLATE_ROOT, "CSharp", GetLanguage() + TemplateGroup.GroupFileExtension)),
Encoding.UTF8);
result.RegisterRenderer(typeof(int), new NumberRenderer());
result.RegisterRenderer(typeof(string), new StringRenderer());
result.Listener = new ErrorListener(this);
return result;
}
}