Another property question


thanks douglas solved indexer problem. issue have non indexer cannot used property:

.property object activeconnection()
{
  .custom instance void [mscorlib]system.runtime.interopservices.dispidattribute::.ctor(int32) = ( 01 00 e9 03 00 00 00 00 )
  .other instance void adodb.recordsetclass::let_activeconnection(object)
  .get instance object adodb.recordsetclass::get_activeconnection()
  .set instance void adodb.recordsetclass::set_activeconnection(object)
} // end of property recordsetclass::activeconnection

however, if used in c# produces:

error cs1545: property, indexer, or event  'activeconnection' not supported language; try directly calling accessor methods 'adodb._record.get_activeconnection()' or         'adodb._record.set_activeconnection(adodb.connection)'

i guessing .other instance ...let_ causing confusion. cannot see in reflected parameter (canread , canwrite true). idea how spot , .other bit means?

you're seeing vb6 quirk.  can have property get, property let , property set.  latter being used assign objects.  you'll need assign these properties explicitly using either let_activeconnection(connectionstring) or set_activeconnection(connectionobject)


.NET Framework  >  Common Language Runtime Internals and Architecture



Comments

Popular posts from this blog

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Azure DocumentDB Owner resource does not exist

SQL Server 2008 - High Memory Usage