Ejemplo n.º 1
0
        public int CompareTo(EntityAppearanceCollection other)
        {
            var h = new Helper.Comparator();

            h.Append(members.Values, other.members.Values);
            return(h.Finish());
        }
Ejemplo n.º 2
0
        public override int CompareTo(object obj)
        {
            var other = obj as CommonMessage;

            if (other == null)
            {
                return(1);
            }
            if (other == this)
            {
                return(0);
            }
            var c = new Helper.Comparator()
                    .Append(Origin, other.Origin)
                    .Append(SentOrderID, other.SentOrderID)
                    .Append(Channel, other.Channel)
                    .Append(Payload, other.Payload);

            return(c.Finish());
        }
Ejemplo n.º 3
0
        public override int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }
            if (obj == this)
            {
                return(0);
            }
            var other = obj as Message;

            if (other == null)                  //nothing i know
            {
                return(base.CompareTo(obj));
            }
            var c = new Helper.Comparator()
                    .AppendComparisonResult(base.CompareTo(other))
                    .Append(TargetEntityID, other.TargetEntityID);

            return(c.Finish());
        }
Ejemplo n.º 4
0
        public override int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }
            if (obj == this)
            {
                return(0);
            }
            var other = obj as Broadcast;

            if (other == null)              //nothing i know
            {
                return(base.CompareTo(obj));
            }
            var c = new Helper.Comparator()
                    .AppendComparisonResult(base.CompareTo(other))
                    .Append(MaxRange, other.MaxRange);

            return(c.Finish());
        }