示例#1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, obj))
            {
                return(true);
            }
            if (obj.GetType() != typeof(IssueModel))
            {
                return(false);
            }
            IssueModel other = (IssueModel)obj;

            return(Url == other.Url && HtmlUrl == other.HtmlUrl && Number == other.Number && State == other.State && Title == other.Title && Body == other.Body && BodyHtml == other.BodyHtml && User == other.User && Labels == other.Labels && Assignee == other.Assignee && Milestone == other.Milestone && Comments == other.Comments && CreatedAt == other.CreatedAt && ClosedAt == other.ClosedAt && UpdatedAt == other.UpdatedAt && PullRequest == other.PullRequest);
        }
示例#2
0
 protected bool Equals(IssueModel other)
 {
     return(string.Equals(Url, other.Url) && string.Equals(HtmlUrl, other.HtmlUrl) && string.Equals(State, other.State) && Number == other.Number && string.Equals(Title, other.Title) && string.Equals(Body, other.Body) && Equals(User, other.User) && Equals(Labels, other.Labels) && Equals(Assignee, other.Assignee) && Equals(Milestone, other.Milestone) && Comments == other.Comments && CreatedAt.Equals(other.CreatedAt) && UpdatedAt.Equals(other.UpdatedAt) && ClosedAt.Equals(other.ClosedAt) && Equals(PullRequest, other.PullRequest));
 }