For example, the main method I want to name is the following:
public static void MasterMethod(string Input){ }
Normally I would do something like this:
public static void StringSelection(int a) { if(a == 1) { return "if"; } else { return "else"; } } MasterMethod(StringSelection(2));
But I want to do something like this:
MasterMethod( a = 2 { if(a == 1) { return "if"; } else { return "else"; } });
Where 2 is somehow passed into the operation as an input.
Is it possible? Does it have a name?
EDIT :: Note: MasterMethod is an API call. I canβt change the settings for it. I accidentally made a typo on this.
source share