Implemented using the filename of the specified .resw file as the generated class name

This commit is contained in:
Christian Resma Helle
2012-11-14 14:34:13 +01:00
parent ab6fc61125
commit 4972afb7f4
9 changed files with 83 additions and 22 deletions
@@ -4,9 +4,9 @@ namespace ChristianHelle.DeveloperTools.CodeGenerators.Resw.CustomTool
{
public class CodeGeneratorFactory
{
public ICodeGenerator Create(string defaultNamespace, string inputFileContents, CodeDomProvider codeDomProvider = null)
public ICodeGenerator Create(string className, string defaultNamespace, string inputFileContents, CodeDomProvider codeDomProvider = null)
{
return new CodeDomCodeGenerator(new ResourceParser(inputFileContents), defaultNamespace, codeDomProvider);
return new CodeDomCodeGenerator(new ResourceParser(inputFileContents), className, defaultNamespace, codeDomProvider);
}
}
}