Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((ReadingTime.GetHashCode() * 397) ^ Temp.GetHashCode());
     }
 }
Exemple #2
0
 public bool Equals(WeatherReading other)
 {
     return(ReadingTime.Equals(other.ReadingTime) && Temp.Equals(other.Temp));
 }
Exemple #3
0
 public int CompareTo(WeatherReading other)
 {
     return(ReadingTime.CompareTo(other.ReadingTime));
 }
Exemple #4
0
        public String ReadingDateStr(bool withDOW = false)
        {
            string str = ReadingTime.ToString("M/d/yy");

            return((withDOW) ? DOWStr[(int)ReadingTime.DayOfWeek] + " " + str : str);
        }