title: Converting VB.NET event to C#
body: <p>I am looking at the old VB.net code </p>
  
  <pre><code>Public Event TagDetected(ByVal t As Tag)
  ...
  RaiseEvent TagDetected(t)
  </code></pre>
  
  <p>that I am trying to convert to C#. My attempt: </p>
  
  <pre><code>public event EventHandler&lt;Tag&gt; TagDetected;
  ...
  TagDetected(this, t.Clone());
  </code></pre>
  
  <p>doesn't work and gives me an error: </p>
  
  <blockquote>
    <p>Error  1   The type 'XYZ.VKM.Common.Tag' cannot be used as type parameter 'TEventArgs' in the generic type or method 'System.EventHandler'. There is no implicit reference conversion from 'XYZ.VKM.Common.Tag' to 'System.EventArgs'.</p>
  </blockquote>