NSObject.Copy Method

Definition

Performs a copy of the underlying Objective-C object.

[Foundation.Export("copy")]
public virtual Foundation.NSObject Copy ();
abstract member Copy : unit -> Foundation.NSObject
override this.Copy : unit -> Foundation.NSObject

Returns

This method performs a copy of the underlying Objective-C object state and returns a new instance of it. It does not actually try to replicate any managed state.

Attributes

Remarks

Convenience method that calls the Copy(null) method. This is an implementation of the INSCopyable interface.

Applies to