Пример #1
0
        private ICSharpCode.ILSpy.Language OutputLanguage(string language)
        {
            //CONFIGURE OUTPUT LANGUAGE
            ICSharpCode.ILSpy.Language lang;
            switch (language)
            {
            case "CXX":
                lang = new ICSharpCode.ILSpy.Cpp.CppLanguage();
                break;

            case "C#":
                lang = new ICSharpCode.ILSpy.CSharpLanguage();
                break;

                //Why we can't add VB ??
#if !CORE
            case "VB":
                lang = new ICSharpCode.ILSpy.VB.VBLanguage();
                break;
#endif
            case "IL":
                lang = new ICSharpCode.ILSpy.ILLanguage(true);
                break;

            default:
                throw new InvalidOperationException("");
            }

            Utils.WriteToConsole("Output language is " + lang.Name);
            return(lang);
        }
Пример #2
0
        private ICSharpCode.ILSpy.Language OutputLanguage(string language)
        {
            //CONFIGURE OUTPUT LANGUAGE
            ICSharpCode.ILSpy.Language lang;
            switch (language)
            {
                case "CXX":
                    lang = new ICSharpCode.ILSpy.Cpp.CppLanguage();
                    break;
                case "C#":
                    lang = new ICSharpCode.ILSpy.CSharpLanguage();
                    break;
                //Why we can't add VB ??
#if !CORE
                case "VB":
                    lang = new ICSharpCode.ILSpy.VB.VBLanguage();
                    break;
#endif
                case "IL":
                    lang = new ICSharpCode.ILSpy.ILLanguage(true);
                    break;
                default:
                    throw new InvalidOperationException("");
            }

            Utils.WriteToConsole("Output language is " + lang.Name);
            return lang;
        }