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

See Also: NSSet Members


[MonoTouch.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: MonoTouch.Foundation
Assembly: monotouch (in monotouch.dll)
Assembly Versions: