Link to home
Start Free TrialLog in
Avatar of soulaco
soulaco

asked on

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)
ASKER CERTIFIED SOLUTION
Avatar of topdog770
topdog770
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial