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
Name
Get name of selector.
public string Name { get; }
Property Value
Methods
Equals(Selector?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Selector? selector)
Parameters
selectorSelector
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
FromHandle(IntPtr)
Get registered selector by its handle.
public static Selector FromHandle(IntPtr handle)
Parameters
handlenintHandle of selector.
Returns
- Selector
Selector.
FromName(string)
Get registered selector or create new one.
public static Selector FromName(string name)
Parameters
namestringName of selector.
Returns
- Selector
Selector.
FromUid(string)
Get registered selector or create new one.
public static Selector FromUid(string uid)
Parameters
uidstringName 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
Returns
operator !=(Selector?, Selector?)
Inequality operator.
public static bool operator !=(Selector? l, Selector? r)