Object initializers in C++/CLI
<p>In C# I can do this:</p>

<pre><code>foo( new SomeClass() { SomeProperty = "value" } );
</code></pre>

<p>Now in C++/CLI I can equivalently do this:</p>

<pre><code>auto tmp = gcnew SomeClass();
tmp-&gt;SomeProperty="value";
foo (tmp);
</code></pre>

<p>But is there a syntax for C++/CLI that is similar to C# object initializers?  In particular I don't want to define a temporary variable and I can't add arguments to the constructor itself.</p>