Description of PSLanguage.
Inheritance: ILanguagePackage
Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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;
 }