using System;
class Publisher {
public event EventHandler MyEvent;
}
public class Subscriber {
public static void Handler(object obj, EventArgs args) {
}
public static void Main() {
Publisher pub = new Publisher();
pub.MyEvent += Handler;
// other processing
}
}