// </Snippet4> // <Snippet5> // Check if the specified event is in the collection. public static bool ContainsEvent(WebBaseEvent ev) { return(events.Contains(ev)); }