csharpier
csharpier copied to clipboard
Chained Assignment Improvement
When there are enough chained assignments, things break like this.
storedArguments_______[i] =
localVariables[i] =
localVariables[i] =
Expression.Parameter(parameters[i].ParameterType);
But when there aren't enough, you can end up like this
storedArguments_______[i] = localVariables[i] = Expression.Parameter(
parameters[i].ParameterType
);
I think we should prefer to break the assignments before the InvocationExpression
storedArguments_______[i] =
localVariables[i] =
Expression.Parameter(parameters[i].ParameterType);