title: 2 ways to create new object by setting property values
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3661025/why-are-c-3-0-object-initializer-constructor-parentheses-optional">Why are C# 3.0 object initializer constructor parentheses optional?</a>  </p>
  </blockquote>
  
  
  
  <p>Hi all<br>
  I have a class <code>Question</code> which has a property <code>Text</code>   </p>
  
  <pre><code>public class Question
  {
      public string Text { get; set; }
  }
  </code></pre>
  
  <p>Now I want to create an object of this type by giving value to property.<br>
  I can do that in this two ways:   </p>
  
  <p><code>Question q = new Question { Text = "Some question" };</code>  </p>
  
  <p>and   </p>
  
  <p><code>Question q = new Question() { Text = "Some question" };</code></p>
  
  <p>Is there any difference between this two cases and if they are the same, why we need both?<br>
  Thanks.</p>