S
Steven Blair
Hi,
I have the follwoing code:
( (cSqlProviderFactory)m_factory ).GetConnectionString();
( (cODBCProviderFactory)m_factory ).GetConnectionString();
I want this to be one line only (I have quite few different classes)
Is it possible, in C# to do soemthing like this:
Type myType = m_Factory.GetType();
( (myType)m_factory ).GetConnectionString();
Regards,
Steven
I have the follwoing code:
( (cSqlProviderFactory)m_factory ).GetConnectionString();
( (cODBCProviderFactory)m_factory ).GetConnectionString();
I want this to be one line only (I have quite few different classes)
Is it possible, in C# to do soemthing like this:
Type myType = m_Factory.GetType();
( (myType)m_factory ).GetConnectionString();
Regards,
Steven