public static void CancelAll() { lock (dcList) { foreach (DelayedCall dc in dcList) { dc.Cancel(); } } }