Пример #1
0
        public static NSSet <TKey> operator -(NSSet <TKey> first, NSSet <TKey> second)
        {
            if (first == null || first.Count == 0)
            {
                return(null);
            }
            if (second == null || second.Count == 0)
            {
                return(new NSSet <TKey> (first));
            }
            var copy = new NSMutableSet <TKey> (first);

            copy.MinusSet(second);
            return(new NSSet <TKey> (copy));
        }
Пример #2
0
        public static NSSet operator -(NSSet first, NSOrderedSet second)
        {
            if (first == null)
            {
                return(null);
            }
            if (second == null)
            {
                return(new NSSet(first));
            }
            var copy = new NSMutableSet(first);

            copy.MinusSet(second.AsSet());
            return(copy);
        }