Home > front end >  C # have the eval function similar to the js
C # have the eval function similar to the js

Time:11-22

We know can use js is string constructor, such as there is the letter A, then B=A string, then eval (B) will have direct access to A function

Now I want to achieve the function character of the transfer function of c #
String string B is equal to A direct access to A function, so on B=ABC, can direct access to the ABC functions, the realization of
The switch (B)
Case "a"
The body=(A)
Case "ABC"
The body=ABC ()
  •  Tags:  
  • ASP
  • Related