static void Main(string[] args)
{
Console.WriteLine(add(1, 2));
}
static int add(int a, int b) // S1172: Remove this paramter 'a', whose value is ignored in the method.
{
return add((a, b));
}
static int add((int, int) operands)
{
return operands.Item1 + operands.Item2;
}
S1172 will be raised if a parameter is only used inside a tuple.