can we use field event in interface??
i use this and i do not get any error
class Program
{
public delegate string MyDelegate(string a);
public static void Main(string[] args)
{
}
public interface face
{
event MyDelegate ab;
}
}
Interfaces cannot declare fields, but they can declare events.
See this tutorial for information on how to declare an event in an interface and then implement it in a class: