TaskPriorityOrSignal Struct
The priority of TaskSignalAnyInit: a fixed TaskPriority, or the TaskSignal whose priority is followed.
public readonly struct TaskPriorityOrSignal : IEquatable<TaskPriorityOrSignal>- Implements
Properties
| Name | Description |
|---|---|
| Priority | Gets the value as a TaskPriority, or null when the value is a signal. |
| Signal | Gets the value as a TaskSignal, or null when the value is a priority. |
| Value | Gets the value: a TaskPriority or a TaskSignal. |
Priority
TaskSignal.csGets the value as a TaskPriority, or null when the value is a signal.
public TaskPriority? Priority { get; }Property value
Signal
TaskSignal.csGets the value as a TaskSignal, or null when the value is a priority.
public TaskSignal? Signal { get; }Property value
Value
TaskSignal.csMethods
| Name | Description |
|---|---|
| Equals(TaskPriorityOrSignal) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| FromTaskPriority(TaskPriority) | Creates a union value from a priority. |
| FromTaskSignal(TaskSignal) | Creates a union value from a signal. |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the fully qualified type name of this instance. |
Equals overloads
Equals(TaskPriorityOrSignal)
TaskSignal.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(TaskPriorityOrSignal other)Parameters
otherTaskPriorityOrSignal- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Equals(object?)
TaskSignal.csFromTaskPriority(TaskPriority)
TaskSignal.csCreates a union value from a priority.
public static TaskPriorityOrSignal FromTaskPriority(TaskPriority value)FromTaskSignal(TaskSignal)
TaskSignal.csCreates a union value from a signal.
public static TaskPriorityOrSignal FromTaskSignal(TaskSignal value)GetHashCode()
TaskSignal.csToString()
TaskSignal.csOperators
| Name | Description |
|---|---|
| operator ==(TaskPriorityOrSignal, TaskPriorityOrSignal) | Returns whether the two unions hold equal values. |
| implicit operator TaskPriorityOrSignal(TaskPriority) | Creates a union value from a priority. |
| implicit operator TaskPriorityOrSignal(TaskSignal) | Creates a union value from a signal. |
| operator !=(TaskPriorityOrSignal, TaskPriorityOrSignal) | Returns whether the two unions hold different values. |
operator ==(TaskPriorityOrSignal, TaskPriorityOrSignal)
TaskSignal.csReturns whether the two unions hold equal values.
public static bool operator ==(TaskPriorityOrSignal left, TaskPriorityOrSignal right)op_Implicit overloads
implicit operator TaskPriorityOrSignal(TaskPriority)
TaskSignal.csCreates a union value from a priority.
public static implicit operator TaskPriorityOrSignal(TaskPriority value)implicit operator TaskPriorityOrSignal(TaskSignal)
TaskSignal.csCreates a union value from a signal.
public static implicit operator TaskPriorityOrSignal(TaskSignal value)operator !=(TaskPriorityOrSignal, TaskPriorityOrSignal)
TaskSignal.csReturns whether the two unions hold different values.
public static bool operator !=(TaskPriorityOrSignal left, TaskPriorityOrSignal right)