title: Diferences between object instantiation in C#: storing objects in references vs. calling a method directly
body: <p>I have a doubt with the objects declarations in c#. I explain with this example
  I can do this:</p>
  
  <pre><code>MyObject obj = New MyObject(); 
  int a = obj.getInt();
  </code></pre>
  
  <p>Or I can do this</p>
  
  <pre><code>int a = new MyObject().getInt();
  </code></pre>
  
  <p>The result are the same, but, exists any diferences between this declarations? (without the syntax)</p>
  
  <p>Thanks.</p>