T
Tony Johansson
Hi!
Here is a simple example on an anonymous method that works
test.myEvent += delegate(object sender, EventArgs e)
{
Console.WriteLine("Test");
};
How do I write the anonymous method within the EventHandler I have tried
here but this gives compile error
test.myEvent +=new EventHandler(Console.WriteLine("Test")
;
//Tony
Here is a simple example on an anonymous method that works
test.myEvent += delegate(object sender, EventArgs e)
{
Console.WriteLine("Test");
};
How do I write the anonymous method within the EventHandler I have tried
here but this gives compile error
test.myEvent +=new EventHandler(Console.WriteLine("Test")
![Wink ;) ;)](/styles/default/custom/smilies/wink.gif)
//Tony