title: Multiple references assignment for the same class object -Reference question
body: <p>This demo class to explain the question</p>
  
  <pre><code> public class SomeClass
      {
          public string Name { get; set; }
          public int Age { get; set; }
  
      }
  </code></pre>
  
  <p>While developing something equals to the <code>sample code</code> I included in this question I got the following thought:  </p>
  
  <p>Since classes are reference type, and if I assign multiple instances to the same <code>class object</code> using <code>loop</code> and store these objects in an list, isn't that enough to ruin each object and make it equals to last instance assigned to it?</p>
  
  <p>Here's some sample implementation for the confusion </p>
  
  <pre><code>List&lt;SomeClass&gt; lst = new List&lt;SomeClass&gt;();
  SomeClass someClassObj = null;
  
  for (int i = 0; i &lt; 3; i++)
  {
       someClassObj = new SomeClass();
       someClassObj.Name = "Name " + i.ToString();
       someClassObj.Age = i;
       lst.Add(someClassObj);
  }
  </code></pre>
  
  <p>after testing it does not wokred the way I though it would, anyway that what i want<br>
  anyone help to clear this confusion.</p>