How to invoke function from its string representation

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Yes, I've thought about it, but I was trying to find simpler solution,
something similar to VB .NET eval() function.

Thank you,
IK
 
Back
Top