While codeing for a project. i got in a situation where i need to call the method or the member of a type via string expresssion. for example i want to get the result of DateTime.Today value into a result box or a variable..
Is there any way to call the function or a member of a class from the string expression.?
Here are some of the examples what i am looking for.
DateTime.Now
DateTime.Today.ToString("dd-MM-yyyy")
Environment.SpecialFolder.ApplicationData
Above are some of the expression user may pass into a textbox and get the result by invoking them thru any button.