Foundation.NSSet Class
An unordered collection of distinct items.

See Also: NSSet Members

Syntax

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

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

Related content

Requirements

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