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

            copy.UnionSet(second.AsSet());
            return(copy);
        }
示例#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);
        }