Dot Net Library

Discussion in 'CRM / Helpdesk / App Integration' started by SWSDEV, Aug 27, 2009.

Thread Status:
Not open for further replies.
  1. SWSDEV

    SWSDEV Member

    Joined:
    Feb 23, 2008
    Messages:
    256
    Likes Received:
    0
    When you call to a .Net assembly, does the object you're instantiating have to have a constructor with no parameters?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. VAD_Support

    VAD_Support Active Member

    Joined:
    Aug 6, 2009
    Messages:
    690
    Likes Received:
    0
    Yes, currently we need to create a new instance of the object (using a parameter less constructor), invoke the method on it, and let it be garbage collected.
    If you need to reuse an object or create it using parameters, you may for example create a singleton which has a reference to it, and use the singleton as a proxy.
    I'm pretty sure that in future versions of the VAD this feature will be added...
     
Thread Status:
Not open for further replies.