Initialising Instance Variables
<p>I was wondering what is the difference between the following and which way is the best way of doing it:</p>

<pre><code>public class ClassA
{
    public ClassB myClass = new ClassB();

    public void MethodA()
    {
         myClass.SomeMethod();
    }
}
</code></pre>

<p>Or this:</p>

<pre><code>public class ClassA
{
    public ClassB myClass = null;

    public ClassA()
    {
        myClass = new ClassB();
    }        

    public void MethodA()
    {
         myClass.SomeMethod();
    }
}
</code></pre>

<h2>Edit</h2>

<p>I removed IDisposable, bear in mind this was just an example, my point was just to see which way is better at instantiating instance variables</p>
