Can I in C# define a method that accepts an object array of a specific size, and for extra "fun" name each index in the array so that when coding the calling method, when I start to type this method the XML tool tip pop up will show what each index is suppose to represent?
The reason I need this is because I am creating a generic wrapper function that dynamically invokes a method in an assembly loaded at run time, and I want a nice way to invoke and pass in parameters.
I understand the pros and cons, but this would really help to cut down similar code in multiple places, by A LOT.
Thanks in advance.
EDIT
To avoid confusion:
Everything works as is, but currently I have the parameters like (string param1, string param2) and then I have to convert that manually into an array, but I want to do something like (object[2] params) but have the XML comments show what each index should represent.
using System.Tardis;
at the top of the file... – Guffa Aug 31 '12 at 16:01void foo(int x, int y, int z)
takes a 3 objects (ints), and they have names (x, y, and z). – Mike Christensen Aug 31 '12 at 16:03