I have a method with optional parameters. Im trying to see how far i can get overloads of all possibilities.
public static int PrintMenu(string message = "Choose an option....", string errorMessage = "error", bool clearScreen = true, params string list)
The most important argument is the string array. Is it possible to do something like following if i want to just change one of the named parameters? :
PrintMenu(errorMessage: "bad input", list : "listItem 1", "listItem 2", "listItem 3");