Define event in interface

  • Thread starter Thread starter Guest
  • Start date Start date
you cant define delegates in interface as delegate is it self a type which is
not permitted in interface.You must declare the delegate out side interface.
This is in context of C# here u must provided delegate with the event
declaration.

public delegate void Y();
interface i{
event Y ev;
}

Vb.net allows you to define event in interface as the event declaration in
vb.net doesnot requires delegate.

Regards
Shahzad
 
Back
Top