In the .net framework, I constantly see overloaded functions, such as:
public void Log(string message)...public void Log(string message, params object[] args)...
My question is that the params keyword allows zero or more parameters, is it possible to just get rid of the first signature? Having only the second signature, I could name it without parameters, as shown below, so I do not know why they will have the first signature?
Log("calling with no param");
source
share