How to declare inline object with inline variables without a parent class
<p>I am trying to do something like:</p>

<pre><code>Object [] x = new Object[2];

x[0]=new Object(){firstName="john";lastName="walter"};
x[1]=new Object(){brand="BMW"};
</code></pre>

<p>I want to know if there is a way to achieve that  in C#</p>
