Struct WeakList<T>.ListVersion
Represents the version of a WeakList<T> at a point in time. The version increases every time a node is added to the list, so versions can be compared to determine whether a node was added before or after a given point.
Namespace: Singulink.Collections
Assembly: Singulink.Collections.Weak.dll
Syntax
public readonly struct WeakList<T>.ListVersion : IEquatable<WeakList<T>.ListVersion>, IComparable<WeakList<T>.ListVersion>
Remarks
Methods
| Name | Description |
|---|---|
| CompareTo(ListVersion) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
| Equals(ListVersion) | 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. |
| GetHashCode() | Returns the hash code for this instance. |
Operators
| Name | Description |
|---|---|
| operator ==(ListVersion, ListVersion) | Determines whether two versions are equal. |
| operator >(ListVersion, ListVersion) | Determines whether the first version is later than the second. |
| operator >=(ListVersion, ListVersion) | Determines whether the first version is the same as or later than the second. |
| operator !=(ListVersion, ListVersion) | Determines whether two versions are not equal. |
| operator <(ListVersion, ListVersion) | Determines whether the first version is earlier than the second. |
| operator <=(ListVersion, ListVersion) | Determines whether the first version is the same as or earlier than the second. |