@@ -92,6 +94,7 @@ public static bool TryParse(string range, out SlotRange value)
/// <summary>
/// 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.
/// </summary>
/// <param name="other">The other slot range to compare to.</param>
publicintCompareTo(SlotRangeother)
{
intdelta=(int)this.from-(int)other.from;
...
...
@@ -101,21 +104,14 @@ public int CompareTo(SlotRange other)
/// <summary>
/// See Object.Equals
/// </summary>
publicoverrideboolEquals(objectobj)
{
if(objisSlotRange)
{
returnEquals((SlotRange)obj);
}
returnfalse;
}
/// <param name="obj">The other slot range to compare to.</param>
this.IsConnected=parts[7]=="connected";// Can be "connected" or "disconnected"
Slots=slots?.AsReadOnly()??NoSlots;
IsConnected=parts[7]=="connected";// Can be "connected" or "disconnected"
}
/// <summary>
/// Gets all child nodes of the current node
...
...
@@ -430,6 +411,7 @@ public ClusterNode Parent
/// <summary>
/// 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.
/// </summary>
/// <param name="other">The <see cref="ClusterNode"/> to compare to.</param>
publicintCompareTo(ClusterNodeother)
{
if(other==null)return-1;
...
...
@@ -442,34 +424,29 @@ public int CompareTo(ClusterNode other)