If i understand you well...
Try this:
Console.WriteLine($"true = {Convert.ToInt32(true)}; false = {Convert.ToInt32(false)}");
So, if you want to return boolean value out of int function, use
0
or
1
. ;)
int testSum(int[] numbers = null, int b = 2)
{
return numbers.All(x => x % b == 0) ? 1 : 0;
}
If i misunderstood your question, please explain it better.