I have:
Json file which contains list of names (MyfunctionA, MyfunctionB, MyfunctionC)
Visual studio project contains multiple functions, each function name is the same as in Json file.
public static void MyfunctionA() {} public static void MyfunctionB() {} public static void MyfunctionC() {}
I am trying to achieve:
I deserialize Json file to get object.
dynamic MyJsonObject = JsonConvert.DeserializeObject(json);
I use foreach loop
foreach (var obj in MyJsonObject) { // My code here }
How to call each function in foreach loop?