mardi 31 mai 2022

Call Method by string value from data base

So I have a cell in my Oracle table, its value will be some System function or some Static Property like DateTime.Now.Year.
at the table cell the type is VARCHAR2 in .Net its string.

How can I produce a Generic Code for each case (Property, static Function) to get the value in the string

string str = "DateTime.Now.Year" // the value comes from DataBase
var valueFromDataBase = str.invoke();




Aucun commentaire:

Enregistrer un commentaire