예제 #1
0
파일: SortedSet.cs 프로젝트: yonder/mono
            public override void IntersectWith(IEnumerable <T> other)
            {
                CheckArgumentNotNull(other, "other");

                var slice = new SortedSet <T> (this);

                slice.IntersectWith(other);

                Clear();
                set.UnionWith(slice);
            }
예제 #2
0
            public override void IntersectWith(IEnumerable <T> other)
            {
                if (other == null)
                {
                    throw new ArgumentNullException("other");
                }
                var slice = new SortedSet <T>(this);

                slice.IntersectWith(other);
                Clear();
                _wrapped.UnionWith(slice);
            }