Suppose we have two methods
public void foo(int a, int b, bool c = false)
{
//some code
}
public void foo(int a, int b, bool d, bool c = false)
{
//some other code
}
when I call foo(1,2,true)
it refers to first method. Is there any way to call second method by passing only 3 parameters?
I found something like this in production code :/