How do I reference object being initialized in the initializer with c#?
<p>Suppose I have an object initializer similar to the following:</p>

<pre><code>var coolObject = new CoolObject()
{
    GetObjectState = () =&gt; coolObject.InternalState;
}
</code></pre>

<p>Where GetObjectState is a Function on CoolObject that returns some kind of object state. In this case, I'd like that function to simply return the coolObject's internal state object. The code object clearly won't compile because you can't reference a local variable before it's declared.</p>

<p>Is there a way around this? Is there something similar to the "this" keyword for initializers?</p>
