O
Ohad Young
Hi,
I have an interface with an event.
I'd like to explicitly implement the interface by a certain class.
However, I received the following error:
"An explicit interface implementation of an event must use property syntax"
Here is a code sample:
public interface IFoo
{
event EvenetHandler MyEvent;
}
public class MyClass : IFoo
{
...
event EvenetHandler IFoo.MyEvent;
}
Please advise, Ohad
--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)
I have an interface with an event.
I'd like to explicitly implement the interface by a certain class.
However, I received the following error:
"An explicit interface implementation of an event must use property syntax"
Here is a code sample:
public interface IFoo
{
event EvenetHandler MyEvent;
}
public class MyClass : IFoo
{
...
event EvenetHandler IFoo.MyEvent;
}
Please advise, Ohad
--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)