BitsetsNET.RoaringBitset.DifferenceWith C# (CSharp) Method

DifferenceWith() public method

Finds members of this bitset that are not in the other set (ANDNOT). Places the results in the current bitset (modifies in place).
public DifferenceWith ( IBitset otherSet ) : void
otherSet IBitset The set to compare against
return void
        public void DifferenceWith(IBitset otherSet)
        {
            if (otherSet is RoaringBitset)
            {
                this.IAndNot((RoaringBitset)otherSet);
            }
            else
            {
                throw new ArgumentOutOfRangeException("Other set must be a roaring bitset");
            }
        }