diff --git a/ILSpy/Options/DecompilerSettingsPanel.xaml b/ILSpy/Options/DecompilerSettingsPanel.xaml index e6a60055d..fb73798a0 100644 --- a/ILSpy/Options/DecompilerSettingsPanel.xaml +++ b/ILSpy/Options/DecompilerSettingsPanel.xaml @@ -7,6 +7,7 @@ Decompile enumerators (yield return) Decompile async methods (async/await) Decompile query expressions + Decompile expression trees Use variable names from debug symbols, if available Show XML documentation in decompiled code Enable folding on all blocks in braces diff --git a/ILSpy/Options/DecompilerSettingsPanel.xaml.cs b/ILSpy/Options/DecompilerSettingsPanel.xaml.cs index c686152f3..90cf3d1a8 100644 --- a/ILSpy/Options/DecompilerSettingsPanel.xaml.cs +++ b/ILSpy/Options/DecompilerSettingsPanel.xaml.cs @@ -55,6 +55,7 @@ namespace ICSharpCode.ILSpy.Options s.YieldReturn = (bool?)e.Attribute("yieldReturn") ?? s.YieldReturn; s.AsyncAwait = (bool?)e.Attribute("asyncAwait") ?? s.AsyncAwait; s.QueryExpressions = (bool?)e.Attribute("queryExpressions") ?? s.QueryExpressions; + s.ExpressionTrees = (bool?)e.Attribute("expressionTrees") ?? s.ExpressionTrees; s.UseDebugSymbols = (bool?)e.Attribute("useDebugSymbols") ?? s.UseDebugSymbols; s.ShowXmlDocumentation = (bool?)e.Attribute("xmlDoc") ?? s.ShowXmlDocumentation; s.FoldBraces = (bool?)e.Attribute("foldBraces") ?? s.FoldBraces; @@ -69,6 +70,7 @@ namespace ICSharpCode.ILSpy.Options section.SetAttributeValue("yieldReturn", s.YieldReturn); section.SetAttributeValue("asyncAwait", s.AsyncAwait); section.SetAttributeValue("queryExpressions", s.QueryExpressions); + section.SetAttributeValue("expressionTrees", s.ExpressionTrees); section.SetAttributeValue("useDebugSymbols", s.UseDebugSymbols); section.SetAttributeValue("xmlDoc", s.ShowXmlDocumentation); section.SetAttributeValue("foldBraces", s.FoldBraces);