This is about mistake which happened couple of days ago.
We had a function having declaration like:
protected string function1(string parameter1, params string parameterArray)
Due to some requirement to overload this API we added below function
Now if we compile these two functions the project will be compiled with no errors and also the calling function will be compiled successfully.
But for the cases where code was calling function1 using below syntax may give some undesired results.
function1(“some string“, “some string1“, “some string2“, “some string3“);
Reason: Now the call is getting diverted to best available match which is our newly added API.
We should be extra carful about creating overloading funcitons specially when current function is having any of the params type parameter.
For above discussed case best way is to create a new API as chaning old API may end up in breaking some calling codes.