public void DebugEvents() { ClassWithEvent c = new ClassWithEvent(); c.DebugEvents("Yohoo", ".*"); c.RaiseEvent(); }