You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The call of the ShiftValues() method in the example below raises either a SA1010 issue: ShiftValues(values: [1, 2, 3], offset: 3);
or - if you remove the space character - a SA1024 issue: ShiftValues(values:[1, 2, 3], offset: 3);
using System.Linq;
namespace PriceCalculationContext.DomainServices;
public class Program
{
private static int[] ShiftValues(int[] values, int offset)
=> values.Select(v => v + offset).ToArray();
public static void Main()
{
ShiftValues(values: [1, 2, 3], offset: 3);
}
}
The text was updated successfully, but these errors were encountered:
a-herbst
changed the title
SA1010 conflicts with SA1024 when invoking a method using named arguments
SA1010 conflicts with SA1024 when invoking a method using named arguments with collection expression
Jun 27, 2024
The call of the ShiftValues() method in the example below raises either a SA1010 issue:
ShiftValues(values: [1, 2, 3], offset: 3);
or - if you remove the space character - a SA1024 issue:
ShiftValues(values:[1, 2, 3], offset: 3);
The text was updated successfully, but these errors were encountered: