What is the proper declaration of a method which will handle the following event?
Class MyClass
{
Public event
EventHandler
}
a.public void A_MyEvent(object sender,MyArgs e)
{
{
b.public void A_MyEvent(object sender,EventArgs e)
{
{
c.public void A_MyEvent(MyArgs e)
{
{
d.public void A_MyEvent(MyClass sender,EventArgs e)
{
{
Kirtan PatelPosted Dec 4, 2009, 6:57 AM
a.public void A_MyEvent(object sender,MyArgs e)
{
Reason.:}
---------
because you are building your Own event then We Need to Pass MyArgs as Argument and Object as Sender .also in other options they passed only EventArgs thats is Also not sufficient as we also need to pass Object That Fired the Event.