コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (GoogleId != null ? GoogleId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GoogleICalUId != null ? GoogleICalUId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OutlookEntryId != null ? OutlookEntryId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OutlookGlobalId != null ? OutlookGlobalId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (EventHash != null ? EventHash.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
 public bool PartialCompare(string id)
 {
     return(GoogleId.Equals(id) || GoogleICalUId.Equals(id) || OutlookEntryId.Equals(id) ||
            OutlookGlobalId.Equals(id));
 }