title: Call class method while instantiating?
body: <p>I don't know how to describe it better so the title might be a bit confusing.</p>
  
  <p>I would like to know if it is possible to instantiate a class by using <code>... = new MyClass()</code> and to call non static methods of this class instantly while instantiating?</p>
  
  <p>For example something like that:</p>
  
  <pre><code>return new MyClass().SetName("some name");
  </code></pre>
  
  <p>I guess I have seen something similar like this before but I can't find it.
  It is a bit annoying to do something like...</p>
  
  <pre><code>MyClass myclass = new MyClass();
  myclass.SetName("some name");
  return myclass;
  </code></pre>
  
  <p>Is there a way to shorten it or to do it like my first example?
  (Please do not suggest me to use a property instead of <code>SetName(string)</code> - it is just an example)</p>
  
  <p>Thanks in advance!</p>