Selector Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) | |