G
Guest
Is there a way dynamically execute a a piece of code at run-time in C#? Such
as representing a custom method "UserInfo.GetEmail()" as a string and get
'evaluated" during execution and return it's value? this method represents an
already existing method in my app.
I'm trying to avoid creating a large hard-coded switch statement and would
like to control what methods are called dynamically from a database table for
different scenarios.
as representing a custom method "UserInfo.GetEmail()" as a string and get
'evaluated" during execution and return it's value? this method represents an
already existing method in my app.
I'm trying to avoid creating a large hard-coded switch statement and would
like to control what methods are called dynamically from a database table for
different scenarios.