Description of CSLanguage.
Inheritance: ILanguagePackage
コード例 #1
0
ファイル: Recorder.cs プロジェクト: lddd99/guiatuomation
        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);
        }
コード例 #2
0
ファイル: Recorder.cs プロジェクト: apetrovskiy/STUPS
 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;
 }