public void AddOrUpdateTimeSpan(string key, int ts)
 {
     if (TimeSpanList.Keys.Contains(key))
     {
         TimeSpanList[key] = ts;
     }
     else
     {
         TimeSpanList.Add(key, ts);
     }
 }
 public void RemoveTimeSpan(string key)
 {
     if (TimeSpanList.Keys.Contains(key))
     {
         TimeSpanList.Remove(key);
     }
     else
     {
         return;
     }
 }
Example #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (StringIList != null ? StringIList.GetHashCode() : 0);
         result = (result * 397) ^ (TimeSpanList != null ? TimeSpanList.GetHashCode() : 0);
         result = (result * 397) ^ (IntICollection != null ? IntICollection.GetHashCode() : 0);
         result = (result * 397) ^ (StringObjectIDictrionary != null ? StringObjectIDictrionary.GetHashCode() : 0);
         result = (result * 397) ^ (IntDataTimeDictionary != null ? IntDataTimeDictionary.GetHashCode() : 0);
         result = (result * 397) ^ (Component != null ? Component.GetHashCode() : 0);
         return(result);
     }
 }