Solved

How to expose params in C# to COM

Posted on 2009-06-30
1
496 Views
Last Modified: 2013-12-17
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
Comment
Question by:soulaco
1 Comment
 
LVL 12

Accepted Solution

by:
topdog770 earned 500 total points
Comment Utility
I don't think there is.  I believe that COM requires concrete ( as in fixed ) types
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now