예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DtStart?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (DtEnd?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Location?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Status.GetHashCode();
         hashCode = (hashCode * 397) ^ IsActive().GetHashCode();
         hashCode = (hashCode * 397) ^ Transparency.GetHashCode();
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(Resources);
         return(hashCode);
     }
 }
예제 #2
0
파일: Event.cs 프로젝트: johnbouma/ical.net
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DtStart?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (DtEnd?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Location?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Status.GetHashCode();
         hashCode = (hashCode * 397) ^ IsActive().GetHashCode();
         hashCode = (hashCode * 397) ^ Transparency.GetHashCode();
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(Attachments);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(Resources);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCodeForNestedCollection(ExceptionDates);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(ExceptionRules);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCodeForNestedCollection(RecurrenceDates);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(RecurrenceRules);
         return(hashCode);
     }
 }
예제 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DtStart?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Priority.GetHashCode();
         hashCode = (hashCode * 397) ^ (Summary?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Class?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Description?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (RecurrenceId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(Attachments);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(Categories);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(Contacts);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(ExceptionDates);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(ExceptionRules);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(RecurrenceDates);
         hashCode = (hashCode * 397) ^ CollectionHelpers.GetHashCode(RecurrenceRules);
         return(hashCode);
     }
 }