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
Console.WriteLine("normal exit"); Console.WriteLine("normal exit");
} }
#if CS110 #if CS110 && false
public IEnumerable<object> YieldBangBang(object x!!) public IEnumerable<object> YieldBangBang(object x!!)
{ {
yield return x; yield return x;

3
ICSharpCode.Decompiler/DecompilerSettings.cs

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

Loading…
Cancel
Save