Selector Class

Definition

Represents an Objective-C selector in managed code.

public class Selector : IEquatable<ObjCRuntime.Selector>, ObjCRuntime.INativeObject
type Selector = class
    interface IEquatable<Selector>
    interface INativeObject
Inheritance
Selector
Implements

Constructors

Selector(IntPtr)

Creates a selector from the unmanaged pointer to the Objective-C selector.

Selector(String)

Creates a new selector and registers it with the Objective-C runtime.

Properties

Handle

Handle (pointer) to the unmanaged selector representation.

Name

Name of this selector.

Methods

Equals(Object)

Compares two objects for equality

Equals(Selector)

Compares two selectors for equality.

FromHandle(IntPtr)

Creates a managed selector wrapper based on the native handle to it.

GetHandle(String)

Returns the handle to the specified Objective-C selector.

GetHashCode()

Returns the Selector's hash code.

Register(IntPtr)

Creates a new Selector instance for the specified Objective-C selector.

Operators

Equality(Selector, Selector)

Determines if two Selector objects are equal by comparing their native handles.

Inequality(Selector, Selector)

Determines if two Selector objects are different by comparing their native handles.

Applies to