Table of Contents

Class Selector

Namespace
CarinaStudio.MacOS.ObjectiveC
Assembly
CarinaStudio.AppBase.MacOS.dll

Selector of NSObject.

public sealed class Selector : IEquatable<Selector>
Inheritance
Selector
Implements
Inherited Members
Extension Methods

Properties

Handle

Get handle of selector.

public IntPtr Handle { get; }

Property Value

nint

Name

Get name of selector.

public string Name { get; }

Property Value

string

Methods

Equals(Selector?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Selector? selector)

Parameters

selector Selector

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

FromHandle(IntPtr)

Get registered selector by its handle.

public static Selector FromHandle(IntPtr handle)

Parameters

handle nint

Handle of selector.

Returns

Selector

Selector.

FromName(string)

Get registered selector or create new one.

public static Selector FromName(string name)

Parameters

name string

Name of selector.

Returns

Selector

Selector.

FromUid(string)

Get registered selector or create new one.

public static Selector FromUid(string uid)

Parameters

uid string

Name of selector.

Returns

Selector

Selector.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

operator ==(Selector?, Selector?)

Equality operator.

public static bool operator ==(Selector? l, Selector? r)

Parameters

l Selector
r Selector

Returns

bool

operator !=(Selector?, Selector?)

Inequality operator.

public static bool operator !=(Selector? l, Selector? r)

Parameters

l Selector
r Selector

Returns

bool