Browse Source

Remove DynamiceExpressions setting (use Dynamic setting instead)

pull/1165/head
Siegfried Pammer 7 years ago
parent
commit
d6e13686aa
  1. 15
      ICSharpCode.Decompiler/DecompilerSettings.cs
  2. 4
      ICSharpCode.Decompiler/IL/Transforms/DynamicCallSiteTransform.cs

15
ICSharpCode.Decompiler/DecompilerSettings.cs

@ -194,21 +194,6 @@ namespace ICSharpCode.Decompiler @@ -194,21 +194,6 @@ namespace ICSharpCode.Decompiler
}
}
bool dynamicExpressions = true;
/// <summary>
/// Decompile expressions that use dynamic types.
/// </summary>
public bool DynamicExpressions {
get { return dynamicExpressions; }
set {
if (dynamicExpressions != value) {
dynamicExpressions = value;
OnPropertyChanged();
}
}
}
bool fixedBuffers = true;
/// <summary>

4
ICSharpCode.Decompiler/IL/Transforms/DynamicCallSiteTransform.cs

@ -38,7 +38,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -38,7 +38,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms
public void Run(ILFunction function, ILTransformContext context)
{
if (!context.Settings.DynamicExpressions)
if (!context.Settings.Dynamic)
return;
this.context = context;
@ -48,7 +48,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -48,7 +48,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms
foreach (var block in function.Descendants.OfType<Block>()) {
if (block.Instructions.Count < 2) continue;
// Check if, we deal with callsite cache field null check:
// Check if, we deal with a callsite cache field null check:
// if (comp(ldsfld <>p__3 == ldnull)) br IL_000c
// br IL_002b
if (!(block.Instructions.SecondToLastOrDefault() is IfInstruction ifInst)) continue;

Loading…
Cancel
Save