[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 512
  • Last Modified:

How to expose params in C# to COM

I have a function in C# that uses the params keyword to allow multiple arguments to be entered into the function. When I expose this function to COM and use this function from VB, it doesn't recognize it as a paramarray. Is there any way to do this?

Here is my function:

public void MyTest(params int[] Values)
0
soulaco
Asked:
soulaco
1 Solution
 
topdog770Commented:
I don't think there is.  I believe that COM requires concrete ( as in fixed ) types
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now