title: C# objects and memory managment
body: <p>Lets say i have the following code where Car class has only 1 property : <code>String modelname</code></p>
  
  <pre><code>Car c = new Car("toyota");
  Car c1 = c;
  Car c2 = c;
  Car c3 = c;
  Car c4 = c;
  Car c5 = c;
  </code></pre>
  
  <p>Is this going to make a new copy of car c every time ? So there will be a new "toyota" String 5 times more in the memory ? Or the "toyota" string will be in the memory only once ? </p>
  
  <p>Edit: Adding this relevant link in case you had the same question as i did, i think it helps  <a href="https://stackoverflow.com/questions/967402/are-arrays-or-lists-passed-by-default-by-reference-in-c">Are arrays or lists passed by default by reference in c#?</a></p>