Hi all,
I'm trying to use GetType to get an Interface, but it's not working?
Is there a special way you have to do this, since it's an Interface
(rather than a complete class)?
Code:
Type SpecDataType = SpecData.GetTyp e();
string strTemp = "SCG.Persistenc e.Interfaces.Pr oduct.I" +
SpecDataType.Na me + "Dao";
//string strTemp = "I" + SpecDataType.Na me + "Dao";
Type SpecDataInterfa ceType = Type.GetType(st rTemp);
Thanks!
I'm trying to use GetType to get an Interface, but it's not working?
Is there a special way you have to do this, since it's an Interface
(rather than a complete class)?
Code:
Type SpecDataType = SpecData.GetTyp e();
string strTemp = "SCG.Persistenc e.Interfaces.Pr oduct.I" +
SpecDataType.Na me + "Dao";
//string strTemp = "I" + SpecDataType.Na me + "Dao";
Type SpecDataInterfa ceType = Type.GetType(st rTemp);
Thanks!
Comment