C# is an object[] as an inline parameter possible?
<p>If I have a method declared like this:</p>

<pre><code>private void someFunction(object[] param1) 
</code></pre>

<p>When I call this function do I have to declare the object array as a variable, or is there a quicker / shortcut way to just pass it inline to the funtion call. </p>

<p>I'm doing it like this:</p>

<pre><code>Object[] myParam1 = new Object[2]
myParam1[0] = "blah";
myParam1[1] = "blah blah"; 
someFunction(myParam1); 
</code></pre>

<p>In my real code, not this example, I'm calling COM from Marshal, and the code is getting messy each time I have to declare the arguments. </p>

<p>Thanks in advance. </p>
