Exemple #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);
        }
Exemple #2
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);
        }
Exemple #3
0
 public NSSet(NSMutableSet <TKey> other)
     : base(other)
 {
 }