I have two functions
public static string Function1 (string id, params string[]) { return Function1(id, null, null, params) } public static string Function1 (string id, string id2, Object a, params string[]) { string id = id, if (IsValidId(id)) { start = new ProcessStartInfo(); start.Arguments = params; if (string.IsNullOrEmpty(id2)==false) { start.RedirectStandardOutput = true; } } }
I want to use the second overload when I make the next call
MyStaticClaass.Function1( input1, input2, null,
Is there a way to get him to move on to the second method definition?
Compilation error: this call is ambiguous between the following methods or properties: (and then the two above methods)
PS: I did not select these two functions. I cannot change my signature or their names.
source share