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