예제 #1
0
        public override int CompareTo(object obj)
        {
            Removal other = obj as Removal;

            if (other == null)
            {
                return(1);
            }
            if (other == this)
            {
                return(0);
            }
            int cmp = Origin.CompareTo(other.Origin);

            if (cmp != 0)
            {
                return(cmp);
            }
            return(Target.CompareTo(other.Target));
        }
예제 #2
0
 public int CompareTo(EntityInfo other)
 {
     return(EntityID.CompareTo(other.EntityID));
 }