Browse Source

Disable DecompilerSettings.ParameterNullCheck

pull/2679/head
Siegfried Pammer 3 years ago
parent
commit
68b388bc36
  1. 2
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs
  2. 3
      ICSharpCode.Decompiler/DecompilerSettings.cs

2
ICSharpCode.Decompiler.Tests/TestCases/Pretty/YieldReturn.cs

@ -428,7 +428,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -428,7 +428,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
Console.WriteLine("normal exit");
}
#if CS110
#if CS110 && false
public IEnumerable<object> YieldBangBang(object x!!)
{
yield return x;

3
ICSharpCode.Decompiler/DecompilerSettings.cs

@ -353,13 +353,14 @@ namespace ICSharpCode.Decompiler @@ -353,13 +353,14 @@ namespace ICSharpCode.Decompiler
}
}
bool parameterNullCheck = true;
bool parameterNullCheck = false;
/// <summary>
/// Use C# 11 parameter null-checking.
/// </summary>
[Category("C# 11.0 / VS 2022.1")]
[Description("DecompilerSettings.ParameterNullCheck")]
[Browsable(false)]
public bool ParameterNullCheck {
get { return parameterNullCheck; }
set {

Loading…
Cancel
Save