Foundation.NSSet Class
An unordered collection of distinct items.

See Also: NSSet Members


[Foundation.Register("NSSet", true)]
public class NSSet : NSObject, INSMutableCopying, INSSecureCoding, IEnumerable<NSObject>, IDisposable


The following example shows how to create a set

c# Example

// Create the set out of four objects
var myColors = new NSSet (UIColor.Red, UIColor.Blue, UIColor.Yellow, UIColor.Red);

// The resulting array will only contain Red, Blue and Yellow
UIColor [] asArray = myColors.ToArray<UIColor> ();

Related content


Namespace: Foundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: