Exemplo n.º 1
0
        /// <summary>Generates all necessary classes.</summary>
        /// <returns>The code.</returns>
        public string GenerateClasses()
        {
            var classes = GenerateTypes(null);

            if (classes.Contains("JsonInheritanceConverter"))
            {
                var templateModel = new JsonInheritanceConverterTemplateModel(Settings);
                var template      = new JsonInheritanceConverterTemplate(templateModel);
                classes += "\n\n" + template.Render();
            }
            return(classes);
        }
 public JsonInheritanceConverterTemplate(JsonInheritanceConverterTemplateModel model)
 {
     Model = model;
 }