ScheduledItem.CompareTo(ScheduledItem?) method¶
Defined in
Type: ScheduledItemReactiveUI.Primitives.Concurrency
Assembly: ReactiveUI.Primitives.Core.dll
Applies to
net10.0, net10.0, net10.0-desktop1.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-browserwasm1.0, net9.0, net9.0, net9.0-desktop1.0, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-browserwasm1.0, net8.0, net8.0, net8.0-ios17.5, net8.0-macos14.5, net8.0-macos14.5, net8.0-macos14.2, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-maccatalyst17.5, net8.0-tvos17.2, net8.0-tvos17.2, net8.0-ios17.5, netstandard2.1, netstandard2.1, net481, net462, net462, net481
Overloads¶
- 1.
public int CompareTo(ScheduledItem<TAbsolute>? other) - 2.
public int CompareTo(object? obj)
1. Overload¶
public int CompareTo(ScheduledItem<TAbsolute>? other)
Summary: Compares this scheduled item with another scheduled item by due time.
Parameters
| Name | Type | Description |
|---|---|---|
other | [ScheduledItem | The scheduled item to compare with this instance. |
Returns: int --
A value less than zero when this item is due earlier than other, zero when both items have
the same due-time ordering, or a value greater than zero when this item is due later. Any non-null item compares
greater than null.
Remarks
This comparison controls scheduling order. It does not imply object equality; Equals and the equality operators use reference identity.
2. Overload¶
public int CompareTo(object? obj)
Summary: Compares this scheduled item with another object by due time.
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | The object to compare with this instance. |
Returns: int --
A value less than zero, zero, or greater than zero indicating this item's relative due-time ordering.
Any non-null item compares greater than null.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | obj is not a compatible [ScheduledItem](# |