Browse Source

Don't inline contructors.

pull/903/head
mohe2015 8 years ago
parent
commit
041c3603d2
  1. 2
      ICSharpCode.Decompiler/IL/Transforms/ProxyCallReplacer.cs

2
ICSharpCode.Decompiler/IL/Transforms/ProxyCallReplacer.cs

@ -54,6 +54,8 @@ namespace ICSharpCode.Decompiler.IL.Transforms
if (call == null) { if (call == null) {
return; return;
} }
if (call.Method.IsConstructor)
return;
// check if original arguments are only correct ldloc calls // check if original arguments are only correct ldloc calls
for (int i = 0; i < call.Arguments.Count; i++) { for (int i = 0; i < call.Arguments.Count; i++) {

Loading…
Cancel
Save