public virtual bool Equals(HrCategory other) { if (ReferenceEquals(this, Null) && other == null) { return(true); } return(Equals(other as object)); }
public virtual int CompareTo(object obj) { if (obj == null) { return(-1); } HrCategory other = obj as HrCategory; if (other != null) { return(this.Ord.CompareTo(other.Ord)); } else { throw new ArgumentException("Object is not a HrCategory"); } }