in rocketmq-client-csharp/Utilities.cs [62:77]
public static int CompareMessageQueue(rmq::MessageQueue lhs, rmq::MessageQueue rhs)
{
int topic_comparison = String.Compare(lhs.Topic.ResourceNamespace + lhs.Topic.Name, rhs.Topic.ResourceNamespace + rhs.Topic.Name);
if (topic_comparison != 0)
{
return topic_comparison;
}
int broker_name_comparison = String.Compare(lhs.Broker.Name, rhs.Broker.Name);
if (0 != broker_name_comparison)
{
return broker_name_comparison;
}
return lhs.Id < rhs.Id ? -1 : (lhs.Id == rhs.Id ? 0 : 1);
}