Example #1
0
        public ClassGenerator(TemplateType type, string templateFilePath, string outputPathFormatString, PostReplacements postReplacements = null)
        {
            Type             = type;
            Code             = File.ReadAllText(templateFilePath);
            Templates        = CodeSection.AllTemplates(Code);
            PostReplacements = postReplacements;

            OutputPathFormatString = outputPathFormatString;
        }