C# function with unlimited number of variables

The first association that comes to mind is to use the "params" keyword, however as you know it allows only one type to be passed. We can use "object" for this purpose, though there might be a better solution:
The undocumented __arglist c# keyword.
Here is an article that explains in detail on how you do it in practice:



Post a Comment

Previous Post Next Post