コード例 #1
0
            /// <inheritdoc />
            public int CompareTo(WorkerSetupCost other)
            {
                var result = SetupBytes.CompareTo(other.SetupBytes);

                return(result == 0 ? AcquiredSlots.CompareTo(other.AcquiredSlots) : result);
            }
コード例 #2
0
 /// <inheritdoc />
 public int CompareTo(WorkerSetupCost other)
 {
     return(SetupBytes.CompareTo(other.SetupBytes));
 }