title: Affect an ICollection that is passed to a method as a parameter?
body: <p>I have a class that has an <code>ICollection</code> property that is assigned by the constructor when the class is instantiated, but I want to bind this property to the original collection so that when it's updated/changed, the original list is as well. What is the best method of doing this?</p>
  
  <p>Here's an example:</p>
  
  <pre><code>public class Organizations
  {
      private ICollection&lt;Organization&gt; _orgs;
  
      public Organizations(ICollection&lt;Organization&gt; orgs)
      {
          _orgs = orgs;
      }
  
      public void TestAdd()
      {
          _orgs.Add(new Organization {Name = "Testing 123"});
      }
  }
  
  
  // in another class
  public ActionResult TestApi()
  {
      var tmp = new SyncTool.Core.Extensions.Zendesk.Organizations(ZendeskCache.Organizations.Data);
      var zd = ZendeskCache.Organizations.Data.FirstOrDefault(n =&gt; n.Name.Contains("Testing 123"));
  
      //ZendeskCache.Org.... is a List&lt;Organization&gt;
  
      return Json(new {data = "tmp" }, AG);
  }
  </code></pre>