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); }
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; }