示例#1
0
        public static NSOrderedSet operator -(NSOrderedSet first, NSSet second)
        {
            if (first == null)
            {
                return(null);
            }
            if (second == null)
            {
                return(new NSOrderedSet(first));
            }
            var copy = new NSMutableOrderedSet(first);

            copy.MinusSet(second);
            return(copy);
        }
示例#2
0
        public static NSOrderedSet <TKey> operator -(NSOrderedSet <TKey> first, NSOrderedSet <TKey> second)
        {
            if (first == null)
            {
                return(null);
            }
            if (second == null)
            {
                return(new NSOrderedSet <TKey> (first));
            }
            var copy = new NSMutableOrderedSet <TKey> (first);

            copy.MinusSet(second);
            var copyset = new NSOrderedSet <TKey> (copy);

            return(copyset);
        }