https://bugzilla.novell.com/show_bug.cgi?id=223296 ------- Comment #16 from martin@ximian.com 2006-11-24 06:50 MST ------- Just had a look at this and I can't reproduce this in the compiler. This is the test case I used: ==== using System; public class EventBox { public event EventHandler ButtonPressEvent; public void ButtonPressed (EventArgs args) { if (ButtonPressEvent != null) ButtonPressEvent (this, args); } public void Test () { } } class X { static void Main () { EventBox eb = new EventBox (); eb.Test (); eb.ButtonPressEvent += delegate (object sender, EventArgs e) { Console.WriteLine (eb != null); }; eb.ButtonPressed (null); } } ==== That works with all three versions of mcs/gmcs I have (1.2, latest SVN and my development tree). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.