NSSet<TKey> Constructors

Definition

Overloads

NSSet<TKey>()
NSSet<TKey>(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

NSSet<TKey>(NSMutableSet<TKey>)
NSSet<TKey>(NSSet<TKey>)
NSSet<TKey>(TKey[])

NSSet<TKey>()

public NSSet ();

Applies to

NSSet<TKey>(NSCoder)

A constructor that initializes the object from the data stored in the unarchiver object.

public NSSet (Foundation.NSCoder coder);
new Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSCoder -> Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>

Parameters

coder
NSCoder

The unarchiver object.

Remarks

This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the NSCoding protocol.

If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type NSCoder and decorate it with the [Export("initWithCoder:"] attribute declaration.

The state of this object can also be serialized by using the companion method, EncodeTo.

Applies to

NSSet<TKey>(NSMutableSet<TKey>)

public NSSet (Foundation.NSMutableSet<TKey> other);
new Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSMutableSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> -> Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>

Parameters

Applies to

NSSet<TKey>(NSSet<TKey>)

public NSSet (Foundation.NSSet<TKey> other);
new Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> -> Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>

Parameters

other
NSSet<TKey>

Applies to

NSSet<TKey>(TKey[])

public NSSet (params TKey[] objs);
new Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : 'Key[] -> Foundation.NSSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)>

Parameters

objs
TKey[]

Applies to