public override bool Equals(object other) { if (other == null || other.GetType() != typeof(Expectations)) { return(false); } Expectations otherExpectations = (Expectations)other; return(Summary.Equals(otherExpectations.Summary) && Description.Equals(otherExpectations.Description) && CompletedBy.Equals(CompletedBy) && Steps.Equals(otherExpectations.Steps)); }
public string ToQueryString() { string returnString = "("; returnString += "'" + ParentId.ToString() + "', "; // 1 returnString += "'" + Title + "', "; // 2 returnString += "'" + ShortDescription + "', "; // 3 returnString += "'" + DetailedDescription + "', "; // 4 returnString += "'" + ParentProject.ToString() + "', "; // 5 returnString += "'" + DateCreated.ToShortDateString() + "', "; // 6 returnString += "'" + CreatedBy.ToString() + "', "; // 7 returnString += "'" + DateCompleted.ToShortDateString() + "', "; // 8 returnString += "'" + CompletedBy.ToString() + "', "; // 9 returnString += "'" + DeadLine.ToShortDateString() + "', "; //10 returnString += "'" + Status + "'"; //11 return(returnString += ")"); } // End of ToQueryString()
public override int GetHashCode() { return(Summary.GetHashCode() + (Description.GetHashCode() + (CompletedBy.GetHashCode() + Steps.GetHashCode()))); }