How to invoke function from its string representation

G

Guest

What are my options to invoke function (method) in this case:
myclass{

private DataSet _userData;

//Property in the class:
public DataSet UserData (string dsource){
get {return _userData;}
set {
_userData=??
}
}
}
Where dsource="MyAssembly.MyClass.GetUserData(uID)" and
MyAssembly.MyClass.GetUserData is static method of DataSet type.

Any references to good articles are greatly appreciated.
Thank you,
IK
 
G

Guest

Yes, I've thought about it, but I was trying to find simpler solution,
something similar to VB .NET eval() function.

Thank you,
IK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top