Consider the following code
namespace Marvel_EventNotUsed { public interface IStatus { event EventHandler Angry; } public class Hulk : IStatus { public event EventHandler Angry; } }
This will result in a warning saying
The event ‘Marvel_EventNotUsed.Hulk.Angry’ is never used
Its kind of correct in a way but the error message is confusing to fix it you need to do this.
public interface IStatus { event EventHandler Angry; } public class Hulk : IStatus { public event EventHandler Angry { add { } remove { } } }