Beispiel #1
0
 public bool Equals(CNTask other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(TaskId == other.TaskId &&
            string.Equals(Content, other.Content) &&
            CreateTime.Equals(other.CreateTime) &&
            StartTime.Equals(other.StartTime) &&
            Priority == other.Priority &&
            Urgency == other.Urgency &&
            Status == other.Status &&
            EstimatedDuration == other.EstimatedDuration &&
            EndTime.Equals(other.EndTime) &&
            (Memos == null && other.Memos == Memos) || (Memos != null && other.Memos != null && Memos.Count == other.Memos.Count && !Memos.Except(other.Memos).Any()) &&
            (Tags == null && other.Tags == Tags) || (Tags != null && other.Tags != null && Tags.Count == other.Tags.Count && !Tags.Except(other.Tags).Any()) &&
            Equals(ParentTaskId, other.ParentTaskId) &&
            (PreTaskIds == null && other.PreTaskIds == PreTaskIds) || (PreTaskIds != null && other.PreTaskIds != null && PreTaskIds.Count == other.PreTaskIds.Count && !PreTaskIds.Except(other.PreTaskIds).Any()));
 }