From 7e52b6222b482331a8f0036efbb0010f9fdbe80e Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Fri, 25 Nov 2016 18:51:53 +0100 Subject: [PATCH] Add DelegateConstruction to transforms pipeline --- ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs | 3 +-- ICSharpCode.Decompiler/DecompilerSettings.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs b/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs index 5225017fb..e080d317e 100644 --- a/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs +++ b/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs @@ -79,8 +79,7 @@ namespace ICSharpCode.Decompiler.CSharp //new InlineCompilerGeneratedVariables(), // -- isn't InlineCompilerGeneratedVariables redundant now that we have variable splitting? new RemoveDeadVariableInit(), // must run after ExpressionTransforms because it does not handle stobj(ldloca V, ...) - //new DelegateConstruction(), - // DelegateConstruction disabled because its broken since the BlockILTransform change + new DelegateConstruction(), }; } diff --git a/ICSharpCode.Decompiler/DecompilerSettings.cs b/ICSharpCode.Decompiler/DecompilerSettings.cs index 133d297aa..74bdc9433 100644 --- a/ICSharpCode.Decompiler/DecompilerSettings.cs +++ b/ICSharpCode.Decompiler/DecompilerSettings.cs @@ -27,7 +27,7 @@ namespace ICSharpCode.Decompiler /// public class DecompilerSettings : INotifyPropertyChanged { - bool anonymousMethods = false; + bool anonymousMethods = true; /// /// Decompile anonymous methods/lambdas.