public override bool Equals(object obj) { if (obj == null) { return(false); } if (Object.ReferenceEquals(this, obj)) { return(true); } if (this.GetType() != obj.GetType()) { return(false); } var other = (VLSurveyTheme)obj; //reference types if (!Object.Equals(Name, other.Name)) { return(false); } if (!Object.Equals(RtHtml, other.RtHtml)) { return(false); } if (!Object.Equals(RtCSS, other.RtCSS)) { return(false); } if (!Object.Equals(DtHtml, other.DtHtml)) { return(false); } if (!Object.Equals(DtCSS, other.DtCSS)) { return(false); } //value types if (!ThemeId.Equals(other.ThemeId)) { return(false); } if (!ClientId.Equals(other.ClientId)) { return(false); } if (!AttributeFlags.Equals(other.AttributeFlags)) { return(false); } return(true); }
public override bool Equals(Object obj) { if (obj is Problem ob) { return(Id.Equals(ob.Id) && CategoryId.Equals(ob.CategoryId) && ThemeId.Equals(ob.ThemeId) && Adress.Equals(ob.Adress) && SourceId.Equals(ob.SourceId) && CreateDate.Equals(ob.CreateDate) && AnswerDate.Equals(ob.AnswerDate) && ProblemText.Equals(ob.ProblemText) && ProblemPhotos.Equals(ob.ProblemPhotos) && AnswerText.Equals(ob.AnswerText) && AnswerPhotos.Equals(ob.AnswerPhotos) && StatusId.Equals(ob.StatusId) && DistrictId.Equals(ob.DistrictId) && ChildID.Equals(ob.ChildID) && ParentID.Equals(ob.ParentID) && IspolnitelName.Equals(ob.IspolnitelName) && IspolnitelId.Equals(ob.IspolnitelId)); } return(false); }