title: Event unsubscription via anonymous delegate
body: <p>I am using Resharper 5.1 code analysis many a times i get a comment from resharper as  </p>
  
  <p><strong>"Event unsubscription via anonymous delegate"</strong>  </p>
  
  <pre><code>#Part of Code  
  
  if (((bool)e.NewValue))
  {
      listView.PreviewTextInput += (o,args) =&gt;
          listView_PreviewTextInput(o,args,listView);
  }
  else
  {
      listView.PreviewTextInput -= (o, args) =&gt; 
          listView_PreviewTextInput(o, args, listView);
  }
  </code></pre>
  
  <p>How could i correct or  optimze this thing</p>