public CSToVBWithoutSimplifierConversion() { this.baseConversion = new CSToVBConversion(); }
/// <summary> /// If the source compilation has project references to a compilation of the same language, this will fail with an argument exception. /// Use <see cref="GetConvertedCompilationWithProjectReferences"/> wherever this is possible. /// </summary> private static Compilation GetConvertedCompilation(Compilation compilation, ILanguageConversion languageConversion) { return(languageConversion is VBToCSConversion?CSToVBConversion.CreateCSharpCompilation(compilation.References) : (Compilation)VBToCSConversion.CreateVisualBasicCompilation(compilation.References)); }