Object reference not set to an instance of an object
<p>I have simple code which throws error: "Object reference not set to an instance of an object"</p>

<pre><code>class B 
{
    public A instance;
}

class A : B
{
    public A()
    {
        instance = this;
    }

    public void DoSomething()
    {
    }
}

class C : B
{
    public C()
    {
        instance.DoSomething();
    }
}

new A();
</code></pre>
