Example #1
0
        /// <summary>
        /// Combines this filter with another using an OR relation.
        /// </summary>
        /// <remarks>
        /// This is a convenience function for creating an <see cref="AndFilter"/>.
        /// </remarks>
        /// <param name='filter'>
        /// The other filter in the OR relationship.
        /// </param>
        public OrFilter Or(Filter filter)
        {
            if (filter == null)
                throw new ArgumentNullException(nameof(filter));

            return new OrFilter(this, filter);
        }
Example #2
0
        public NotFilter(Filter innerFilter)
        {
            if (innerFilter == null)
                throw new ArgumentNullException(nameof(innerFilter));

            InnerFilter = innerFilter;
        }