title: C# out parameter and dictionary
body: <p>I've a dictionary object in my C# code:dictEmployees;---></p>
  
  <p>It has a list of all Employees.Employee class has two properties...Id and Salary.Lets say, Initially, this collection has a salary of 50K for employee Id 1.</p>
  
  <pre><code>Employee employee = new Employee();
  dictEmployees.TryGetValue(1, out employee);
  </code></pre>
  
  <p>Now,if I modify employee' salary in other some method, I see that the salary is also being reflected in the employee object in the dictionary.
  Is this expected please?</p>
  
  <p>Thanks.</p>