Is there any side effect of passing and extra argument to the string.Format
function in C#? I was looking at the string.Format
documentation at MSDN but was unable to find an answer.
E.g.:
string str = string.Format("Hello_{0}", 255, 555);
Now, as you can see in the according to format string, we are supposed to pass only one argument after it, but I have passed two.
I have tried it on my end and everything looks fine to me, but I just want to make sure that it will not cause any problems in later runs.
params
one at a time, than the longer the list, the longer it will take, regardless of how many formatting options it actually has in the format string. – Piscator