0

I want to create object of a class in generic or dynamically based on a string value.

string clsName = col.className.ToString();

Here clsName will have the class name

instead of hard coding below statement I need to create the object based on the clsName TestTradeAllyInfo objTestTradeAllyInfo = new TestTradeAllyInfo();

Please help, Thanks in advance.

Ondrej Tucny
  • 26,707
  • 6
  • 66
  • 88
prasidh
  • 11
  • 2

0 Answers0