NSOrderedSet<TKey> Constructors

Definition

Overloads

Name Description
NSOrderedSet<TKey>()

Initializes a new empty instance of the NSOrderedSet<TKey> class.

NSOrderedSet<TKey>(NSCoder)

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

NSOrderedSet<TKey>(NSMutableOrderedSet<TKey>)

Initializes a new instance of the NSOrderedSet<TKey> class by copying a mutable ordered set.

NSOrderedSet<TKey>(NSOrderedSet<TKey>)

Initializes a new instance of the NSOrderedSet<TKey> class by copying another ordered set.

NSOrderedSet<TKey>(NSSet<TKey>)

Initializes a new instance of the NSOrderedSet<TKey> class from an NSSet<TKey>.

NSOrderedSet<TKey>(TKey)

Initializes a new instance of the NSOrderedSet<TKey> class with a single object.

NSOrderedSet<TKey>(TKey[])

Initializes a new instance of the NSOrderedSet<TKey> class with the specified objects.

NSOrderedSet<TKey>()

Initializes a new empty instance of the NSOrderedSet<TKey> class.

public NSOrderedSet();

Applies to

NSOrderedSet<TKey>(NSCoder)

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

public NSOrderedSet(Foundation.NSCoder coder);
new Foundation.NSOrderedSet<'Key (requires 'Key : null and 'Key :> ObjCRuntime.INativeObject)> : Foundation.NSCoder -> Foundation.NSOrderedSet<'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

NSOrderedSet<TKey>(NSMutableOrderedSet<TKey>)

Initializes a new instance of the NSOrderedSet<TKey> class by copying a mutable ordered set.

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

Parameters

other
NSMutableOrderedSet<TKey>

The mutable ordered set to copy.

Applies to

NSOrderedSet<TKey>(NSOrderedSet<TKey>)

Initializes a new instance of the NSOrderedSet<TKey> class by copying another ordered set.

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

Parameters

other
NSOrderedSet<TKey>

The ordered set to copy.

Applies to

NSOrderedSet<TKey>(NSSet<TKey>)

Initializes a new instance of the NSOrderedSet<TKey> class from an NSSet<TKey>.

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

Parameters

source
NSSet<TKey>

The source set.

Applies to

NSOrderedSet<TKey>(TKey)

Initializes a new instance of the NSOrderedSet<TKey> class with a single object.

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

Parameters

start
TKey

The object to add to the set.

Applies to

NSOrderedSet<TKey>(TKey[])

Initializes a new instance of the NSOrderedSet<TKey> class with the specified objects.

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

Parameters

objs
TKey[]

The objects to add to the set.

Applies to