コード例 #1
0
 public bool Equals(Calendar other)
 {
     if (other == null)
     {
         return(false);
     }
     return(Calendar_id.Equals(other.Calendar_id) && Counter.Equals(other.Counter));
 }
コード例 #2
0
 public int CompareTo(Calendar other)
 {
     if (other == null)
     {
         return(1);
     }
     else
     {
         int result = Calendar_id.CompareTo(other.Calendar_id);
         if (result == 0)
         {
             result = Counter.CompareTo(other.Counter);
         }
         return(result);
     }
 }
コード例 #3
0
 public override int GetHashCode()
 {
     return(Calendar_id.GetHashCode() + Counter);
 }