/// <summary> /// Removes the events that match the conditions of the specified delegate. /// </summary> /// <param name="handler">The delegate that defines the conditions of the /// events to remove.</param> /// <returns>The number of events removed from the simulation.</returns> public static int RemoveEvents(RemoveEventsHandler handler) { return events.Remove(handler.Invoke); }
/// <summary> /// Removes the events that match the conditions of the specified delegate. /// </summary> /// <param name="handler">The delegate that defines the conditions of the /// events to remove.</param> /// <returns>The number of events removed from the simulation.</returns> public static int RemoveEvents(RemoveEventsHandler handler) { return(events.Remove(handler.Invoke)); }