Is it possible to use a string to type a Template in C#? -
this question has answer here:
- how use reflection call generic method? 7 answers
- get new object instance type 12 answers
can use string type templated method in c#?
i (juste example code)
string str = "myproject.mytype"; dynamic obj = jsonobject.toobject<str>();
i tried use type.gettype()
type string, doesn't work too.
Comments
Post a Comment