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

            if ((compareTo = StationIdentifier.CompareTo(other.StationIdentifier)) != 0)
            {
                return(compareTo);
            }
            if ((compareTo = Year.CompareTo(other.Year)) != 0)
            {
                return(compareTo);
            }

            return(0);
        }