Check inside method whether some optional argument was passed
Well, arguments are always passed. Default parameter values just ensure that the user doesn’t have to explicitly specify them when calling the function. When the compiler sees a call like this: ExampleMethod(1); It silently converts it to: ExampleMethod(1, “default string”, 10); So it’s not techically possible to determine if the argument was passed at run-time. … Read more