G
Grande
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.GetType();
string strTemp = "SCG.Persistence.Interfaces.Product.I" +
SpecDataType.Name + "Dao";
//string strTemp = "I" + SpecDataType.Name + "Dao";
Type SpecDataInterfaceType = Type.GetType(strTemp);
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.GetType();
string strTemp = "SCG.Persistence.Interfaces.Product.I" +
SpecDataType.Name + "Dao";
//string strTemp = "I" + SpecDataType.Name + "Dao";
Type SpecDataInterfaceType = Type.GetType(strTemp);
Thanks!