Browse Source

GetMinimumRequiredVersion(): Add case for C# 8.0

pull/1471/head
Daniel Grunwald 6 years ago
parent
commit
3806610d0a
  1. 2
      ICSharpCode.Decompiler/DecompilerSettings.cs

2
ICSharpCode.Decompiler/DecompilerSettings.cs

@ -101,6 +101,8 @@ namespace ICSharpCode.Decompiler @@ -101,6 +101,8 @@ namespace ICSharpCode.Decompiler
public CSharp.LanguageVersion GetMinimumRequiredVersion()
{
if (nullableReferenceTypes)
return CSharp.LanguageVersion.CSharp8_0;
if (introduceUnmanagedConstraint || tupleComparisons || stackAllocInitializers)
return CSharp.LanguageVersion.CSharp7_3;
if (introduceRefModifiersOnStructs || introduceReadonlyAndInModifiers || nonTrailingNamedArguments)

Loading…
Cancel
Save