From a06de7171c3ec2ad962e0b4b3f9ffe9a0c346cc3 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Wed, 15 Jun 2022 19:01:41 +0200 Subject: [PATCH] Fix comments --- ICSharpCode.Decompiler/DecompilerSettings.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ICSharpCode.Decompiler/DecompilerSettings.cs b/ICSharpCode.Decompiler/DecompilerSettings.cs index 74d48ce30..ec0f14f7c 100644 --- a/ICSharpCode.Decompiler/DecompilerSettings.cs +++ b/ICSharpCode.Decompiler/DecompilerSettings.cs @@ -395,7 +395,7 @@ namespace ICSharpCode.Decompiler bool parameterNullCheck = false; /// - /// Use C# 11 parameter null-checking. + /// Use C# 11 preview parameter null-checking (string param!!). /// [Category("C# 11.0 / VS 2022.1")] [Description("DecompilerSettings.ParameterNullCheck")] @@ -1081,8 +1081,11 @@ namespace ICSharpCode.Decompiler bool useRefLocalsForAccurateOrderOfEvaluation = true; /// - /// Gets/Sets whether to use C# 6.0 Extension Add methods in collection initializers. - /// Only has an effect if ObjectOrCollectionInitializers is enabled. + /// Gets/Sets whether to use local ref variables in cases where this is necessary + /// for re-compilation with a modern C# compiler to reproduce the same behavior + /// as the original assembly produced with an old C# compiler that used an incorrect + /// order of evaluation. + /// See https://github.com/icsharpcode/ILSpy/issues/2050 /// [Category("C# 6.0 / VS 2015")] [Description("DecompilerSettings.UseRefLocalsForAccurateOrderOfEvaluation")]