Browse Source

Fix capacity and size of collections used in BuildArgumentList.

pull/1236/head
Siegfried Pammer 7 years ago
parent
commit
c8921dfee6
  1. 4
      ICSharpCode.Decompiler/CSharp/CallBuilder.cs

4
ICSharpCode.Decompiler/CSharp/CallBuilder.cs

@ -416,9 +416,9 @@ namespace ICSharpCode.Decompiler.CSharp @@ -416,9 +416,9 @@ namespace ICSharpCode.Decompiler.CSharp
var arguments = new List<TranslatedExpression>(method.Parameters.Count);
string[] argumentNames = null;
Debug.Assert(callArguments.Count == firstParamIndex + method.Parameters.Count);
var expectedParameters = new List<IParameter>(arguments.Count); // parameters, but in argument order
var expectedParameters = new List<IParameter>(method.Parameters.Count); // parameters, but in argument order
bool isExpandedForm = false;
BitSet isPrimitiveValue = new BitSet(arguments.Count);
BitSet isPrimitiveValue = new BitSet(method.Parameters.Count);
// Optional arguments:
// This value has the following values:

Loading…
Cancel
Save