MonoMac.Foundation.NSSet Class
An unordered collection of distinct items.

See Also: NSSet Members

Syntax

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

Remarks

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> ();
	    

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0