Siegfried Pammer
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
ILSpy/ExtensionMethods.cs
|
@ -79,7 +79,7 @@ namespace ICSharpCode.ILSpy |
|
|
public static ICompilation? GetTypeSystemWithCurrentOptionsOrNull(this MetadataFile file, SettingsService settingsService, LanguageVersion languageVersion) |
|
|
public static ICompilation? GetTypeSystemWithCurrentOptionsOrNull(this MetadataFile file, SettingsService settingsService, LanguageVersion languageVersion) |
|
|
{ |
|
|
{ |
|
|
var decompilerSettings = settingsService.DecompilerSettings.Clone(); |
|
|
var decompilerSettings = settingsService.DecompilerSettings.Clone(); |
|
|
if (!Enum.TryParse(languageVersion.Version, out Decompiler.CSharp.LanguageVersion csharpLanguageVersion)) |
|
|
|
|
|
|
|
|
if (!Enum.TryParse(languageVersion?.Version, out Decompiler.CSharp.LanguageVersion csharpLanguageVersion)) |
|
|
csharpLanguageVersion = Decompiler.CSharp.LanguageVersion.Latest; |
|
|
csharpLanguageVersion = Decompiler.CSharp.LanguageVersion.Latest; |
|
|
decompilerSettings.SetLanguageVersion(csharpLanguageVersion); |
|
|
decompilerSettings.SetLanguageVersion(csharpLanguageVersion); |
|
|
return file |
|
|
return file |
|
|