NSoft.NFramework.Collections.PascalSet.IsSubset C# (CSharp) Method

IsSubset() public method

현재 집합이 지정된 값을 가진 집합의 부분집합인지 판단한다. (두 집합이 일치해도 부분집합이다)
public IsSubset ( ) : bool
return bool
        public virtual bool IsSubset(params int[] values) {
            return IsSubset(new PascalSet(_lowerBound, _upperBound, values));
        }

Same methods

PascalSet::IsSubset ( PascalSet set ) : bool

Usage Example

Beispiel #1
0
        public void UnionTest()
        {
            var union = _pascalSet2.Union(_pascalSet3);

            Assert.IsTrue(_pascalSet1.IsSubset(union));

            union = _pascalSet2 | _pascalSet3;
            Assert.IsTrue(_pascalSet1.IsSubset(union));

            if (IsDebugEnabled)
            {
                log.Debug(union.ToString());
            }
        }
All Usage Examples Of NSoft.NFramework.Collections.PascalSet::IsSubset