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