private static ILanguagePackage SelectLanguage(RecorderLanguages languageCode) { ILanguagePackage languagePackage = null; switch (languageCode) { case RecorderLanguages.PowerShell: languagePackage = new PsLanguage(); break; case RecorderLanguages.CSharp: languagePackage = new CsLanguage(); break; case RecorderLanguages.Java: languagePackage = new JavaLanguage(); break; default: //throw new Exception("Invalid value for RecorderLanguages"); languagePackage = new PsLanguage(); break; } return(languagePackage); }
private static ILanguagePackage SelectLanguage(RecorderLanguages languageCode) { ILanguagePackage languagePackage = null; switch (languageCode) { case RecorderLanguages.PowerShell: languagePackage = new PsLanguage(); break; case RecorderLanguages.CSharp: languagePackage = new CsLanguage(); break; case RecorderLanguages.Java: languagePackage = new JavaLanguage(); break; default: //throw new Exception("Invalid value for RecorderLanguages"); languagePackage = new PsLanguage(); break; } return languagePackage; }