public bool Equals(ServiceForCategory other) { if (other == null) { return(false); } else if (other.Priority == 0) { return(false); } return(this.Priority.Equals(other.Priority)); }
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); }
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)); } }