Example #1
0
 public bool Equals(ServiceForCategory other)
 {
     if (other == null)
     {
         return(false);
     }
     else if (other.Priority == 0)
     {
         return(false);
     }
     return(this.Priority.Equals(other.Priority));
 }
Example #2
0
        public int CompareTo(ServiceForCategory other)
        {
            if (other == null)//|| other.Priority == 0)
            {
                return(1);
            }
            if (other.Priority == 0)
            {
                return(-1);
            }
            int si = this.Priority.CompareTo(other.Priority);

            return(si);
        }
Example #3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            ServiceForCategory objAsSer = obj as ServiceForCategory;

            if (objAsSer == null)
            {
                return(false);
            }
            else if (objAsSer.Priority == 0)
            {
                return(false);
            }
            else
            {
                return(Equals(objAsSer));
            }
        }