I need your help.
Is it possible to do the following using c#?
I have a method
void SomeMethod(int p1 = 0, bool p2 = true, string p3 = "")
{
// some code
}
And I need to call this method with unknown number of arguments on compile time. I mean on runtime the app should load info about arguments from xml (for example) and call the method with those arguments. Xml file may contains 0 to 3 arguments.
How to call the SomeMethod method with unknown number of arguments loaded from xml?
Thank you