Here is what i want to do, and i know it is possible with perl, php, python and java, but i am working with c#
how can i do the following:
public voi
Executing a string as if it were code is possible in c#, but it's not pretty or simple. It's also considered poor practice and insecure (you probably should avoid it in dynamic languages, too).
Instead, do something like this:
public void amethod(Action actionParam)
{
actionParam();
}
Now, in your case you want to call a web service. Since that ultimately comes down to xml anyway you have a couple options: