示例#1
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Create autocode");

            var gen = new AllGenerators();

            gen.WithGenerator <StringPropertyGenerator>()
            .WithGenerator(GetEnumsGenerator())
            .WithGenerator <Code.AutoCode.Generators.BuilderForTypeGenerator>();
            gen.Build();
        }
示例#2
0
        private static EnumsGenerator GetEnumsGenerator()
        {
            var enumsGenerator = new EnumsGenerator(AllGenerators.GetDirectoryProvider())
                                 .WithTargetAssembly <Sha1Code>();

            UseraddSetup.Add(enumsGenerator);
            TarSetup.Add(enumsGenerator);
            CurlSetup.Add(enumsGenerator);
            UnzipSetup.Add(enumsGenerator);
            DockerComposeSetup.Add(enumsGenerator);
            return(enumsGenerator);
        }