コード例 #1
0
        public static LanguageGenerator CodeGenerator(CodeLanguage lang)
        {
            LanguageGenerator gen = null;

            switch (lang)
            {
            case CodeLanguage.CSharp:

                gen = new CSharpGenerator();
                break;

            case CodeLanguage.PHP:

                gen = new PHPGenerator();
                break;
            }
            return(gen);
        }
コード例 #2
0
        public static LanguageGenerator CodeGenerator(CodeLanguage lang)
        {
            LanguageGenerator gen = null;
            switch (lang)
            {
                case CodeLanguage.CSharp:

                    gen = new CSharpGenerator();
                    break;
                case CodeLanguage.PHP:

                    gen = new PHPGenerator();
                    break;
            }
            return gen;
        }