title: Empty a ListView
body: <p>I have a simple Windows form containing among other components, a <code>ListView</code> object named <code>list</code>. On the form, a button enables me to empty the list on click with <code>list.Items.Clear()</code>. This works fine.</p>
  
  <p>Now I have a separate class <code>Test</code>, whose method <code>update()</code> is called on some events external to the form. At construction of the form, I pass a reference to the list using the <code>SetList</code> method. In debug mode, <code>update()</code> is called on the events that I trigger, and its content executed, but my list isn't cleared. </p>
  
  <p>Why is this? The reference is properly set, I checked. </p>
  
  <pre><code>class Test
  {
     private ListView list;
  
     public void setList(ListView list)
     {
        this.list = list;
     }
  
     public void update()
     {
        this.list.Items.Clear();
     }
  }
  </code></pre>
  
  <p>when I look closer at my list being modified by putting breakpoints in update(), list is cleaned and stays cleaned. It really seems like it is another list being modified, but I have only one and never do any new on it... ????</p>