// csc /o /t:library test1a.cs
using System;
public class Foo {
 public event EventHandler Do;
 public void Fire() {
  EventHandler eh = Do;
  if (eh != null) eh(this, EventArgs.Empty);
 }
}