Share via


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

Name Description
Selector(NativeHandle)
Selector(String)

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

Properties

Name Description
Handle

Handle (pointer) to the unmanaged selector representation.

Name

Name of this selector.

Methods

Name Description
Equals(Object)

Compares two objects for equality

Equals(Selector)

Compares two selectors for equality.

FromHandle(NativeHandle, Boolean)

Creates a managed Selector instance from a native selector.

FromHandle(NativeHandle)
GetHandle(String)

Returns the handle to the specified Objective-C selector.

GetHashCode()

Returns the Selector's hash code.

Register(NativeHandle)

Operators

Name Description
Equality(Selector, Selector)
Inequality(Selector, Selector)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to