Esempio n. 1
0
        public static NSMutableSet <TKey> operator -(NSMutableSet <TKey> first, NSMutableSet <TKey> second)
        {
            if (first == null || first.Count == 0)
            {
                return(null);
            }
            if (second == null || second.Count == 0)
            {
                return(new NSMutableSet <TKey> (first));
            }
            var copy = new NSMutableSet <TKey> (first);

            copy.MinusSet(second);
            return(copy);
        }
Esempio n. 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);
        }
Esempio n. 3
0
        public static NSMutableSet operator +(NSMutableSet first, NSMutableSet second)
        {
            if (first == null || first.Count == 0)
            {
                return(new NSMutableSet(second));
            }
            if (second == null || second.Count == 0)
            {
                return(new NSMutableSet(first));
            }

            var copy = new NSMutableSet(first);

            copy.UnionSet(second);
            return(copy);
        }
Esempio n. 4
0
 public NSSet(NSMutableSet <TKey> other)
     : base(other)
 {
 }