Exemple #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));
        }
Exemple #2
0
 public int CompareTo(EntityInfo other)
 {
     return(EntityID.CompareTo(other.EntityID));
 }