/// <summary> /// Determines whether this <see cref="BroSet"/> contains specified <paramref name="value"/>. /// </summary> /// <param name="value">The <see cref="BroValue"/> to locate in this <see cref="BroSet"/>.</param> /// <returns> /// <c>true</c> if <paramref name="value"/> is found in this <see cref="BroSet"/>; otherwise, <c>false</c>. /// </returns> /// <exception cref="ObjectDisposedException">Cannot execute contains, <see cref="BroSet"/> is disposed.</exception> public bool Contains(BroValue value) { if ((object)value == null) { throw new ArgumentNullException("value"); } if (m_setPtr.IsInvalid()) { throw new ObjectDisposedException("Cannot execute contains, Bro set is disposed."); } return(value.ExecuteWithFixedPtr(ptr => BroApi.bro_set_find(m_setPtr, ptr) != 0)); }