/// <summary> /// Creates a new <see cref="BroEvent"/> with the specified <paramref name="name"/>. /// </summary> /// <param name="name">Name of the <see cref="BroEvent"/>.</param> /// <exception cref="ArgumentNullException"><paramref name="name"/> is <c>null</c>.</exception> /// <exception cref="OutOfMemoryException">Failed to create Bro event.</exception> public BroEvent(string name) { if ((object)name == null) { throw new ArgumentNullException("name"); } m_eventPtr = BroApi.bro_event_new(name); if (m_eventPtr.IsInvalid()) { throw new OutOfMemoryException("Failed to create Bro event."); } m_name = name; m_parameters = new List <BroValue>(); }