public static IEnumerable <HandlerListEntry> AsEnumerable(this EventHandlerList list) { var current = list.GetHead(); while (current != null) { yield return(current); current = current.Next; } }