title: Enumerable.Repeat for reference type objects initialization
body: <p>I have a question about Enumerable.Repeat function.</p>
  
  <p>If I will have a class:</p>
  
  <pre><code>class A
  {
  //code
  }
  </code></pre>
  
  <p>And I will create an array, of that type objects:</p>
  
  <pre><code>A [] arr = new A[50];
  </code></pre>
  
  <p>And next, I will want to initialize those objects, calling Enumerable.Repeat:</p>
  
  <pre><code>arr = Enumerable.Repeat(new A(), 50);
  </code></pre>
  
  <p>Will those objects have the same address in memory?
  If I will want to check their hash code, for example in that way:</p>
  
  <pre><code>bool theSameHashCode = questions[0].GetHashCode() == questions[1].GetHashCode();
  </code></pre>
  
  <p>This will return me true, and if I will change one object properties, all other objects will change it too.</p>
  
  <p>So my question is: is that properly way, to initialize reference type objects? If not, then what is a better way?</p>