From 112c1c03b81468e937a1cc847347ec58040c45b8 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Wed, 14 Nov 2018 23:57:55 +0100 Subject: [PATCH] Fix #1313: Variables names from PDB file not used. --- ILSpy/Languages/CSharpLanguage.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ILSpy/Languages/CSharpLanguage.cs b/ILSpy/Languages/CSharpLanguage.cs index 26b4532ad..a17f28350 100644 --- a/ILSpy/Languages/CSharpLanguage.cs +++ b/ILSpy/Languages/CSharpLanguage.cs @@ -110,6 +110,7 @@ namespace ICSharpCode.ILSpy { CSharpDecompiler decompiler = new CSharpDecompiler(module, module.GetAssemblyResolver(), options.DecompilerSettings); decompiler.CancellationToken = options.CancellationToken; + decompiler.DebugInfoProvider = module.GetDebugInfoOrNull(); while (decompiler.AstTransforms.Count > transformCount) decompiler.AstTransforms.RemoveAt(decompiler.AstTransforms.Count - 1); return decompiler;