public void UnregisterProc(int msg, MessageProc proc) { if (procs.ContainsKey(msg)) { procs[msg] -= proc; } }