示例#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);
            }