コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = StationYear.GetHashCode();//(StationYear != null ? StationYear.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Priority;
         hashCode = (hashCode * 397) ^ RequestTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LastRun.GetHashCode();//(LastRun != null ? LastRun.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
        public int CompareTo(StationYearRequest other)
        {
            int compareTo;

            if ((compareTo = Priority.CompareTo(other.Priority)) != 0)
            {
                return(compareTo);
            }
            if ((compareTo = RequestTime.CompareTo(other.RequestTime)) != 0)
            {
                return(compareTo);
            }
            if ((compareTo = StationYear.CompareTo(other.StationYear)) != 0)
            {
                return(compareTo);
            }

            return(0);
        }