Hi,
I have the follwoing code:
( (cSqlProviderFa ctory)m_factory ).GetConnection String();
( (cODBCProviderF actory)m_factor y ).GetConnection String();
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.GetTy pe();
( (myType)m_facto ry ).GetConnection String();
Regards,
Steven
*** Sent via Developersdex http://www.developersdex.com ***
I have the follwoing code:
( (cSqlProviderFa ctory)m_factory ).GetConnection String();
( (cODBCProviderF actory)m_factor y ).GetConnection String();
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.GetTy pe();
( (myType)m_facto ry ).GetConnection String();
Regards,
Steven
*** Sent via Developersdex http://www.developersdex.com ***
Comment