creating a list when calling a method
<p>I have a method with the following signature:</p>

<pre><code>public void SomeMethod(int SomeInt, List&lt;long&gt; SomeListOfLongs)
</code></pre>

<p>At one point, I'm calling this method and the code looks somewhat like this:</p>

<pre><code>int TheInt = 2;
long TheLong1 = 3;
long TheLong2 = 4;
</code></pre>

<p>I'd like to create the list of longs and call the method in one step. I tried this:</p>

<pre><code>SomeMethod(TheInt, new List&lt;long&gt;(TheLong1, TheLong2));
</code></pre>

<p>Is there a way to avoid having to create a new list directly in the call itself?</p>

<p>Thanks.</p>
