aviso do compilador (nível 3) CS0067

Mensagem de erro

O evento 'evento' nunca é usado

An evento foi declarada mas nunca foi usada na classe na qual ela foi declarada.

O exemplo a seguir gera CS0067:

// CS0067.cs
// compile with: /W:3
using System;
delegate void MyDelegate();

class MyClass
{
   public event MyDelegate evt;   // CS0067
   // uncomment TestMethod to resolve this CS0067
/*
   private void TestMethod()
   {
      if (evt != null)
         evt();
   }
*/
   public static void Main()
   {
   }
}