/// <summary> /// Returns true if GithubRepositories instances are equal /// </summary> /// <param name="other">Instance of GithubRepositories to be compared</param> /// <returns>Boolean</returns> public bool Equals(GithubRepositories other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Class == other.Class || Class != null && Class.Equals(other.Class) ) && ( Links == other.Links || Links != null && Links.Equals(other.Links) ) && ( Items == other.Items || Items != null && other.Items != null && Items.SequenceEqual(other.Items) ) && ( LastPage == other.LastPage || LastPage.Equals(other.LastPage) ) && ( NextPage == other.NextPage || NextPage.Equals(other.NextPage) ) && ( PageSize == other.PageSize || PageSize.Equals(other.PageSize) )); }
/// <summary> /// Determines whether the specified Object is equal to the current Object. /// </summary> /// <param name="obj"></param> /// <returns></returns> 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 = (VLSurveyPage)obj; //reference types if (!Object.Equals(CustomId, other.CustomId)) { return(false); } if (!Object.Equals(SkipToWebUrl, other.SkipToWebUrl)) { return(false); } if (!Object.Equals(ShowTitle, other.ShowTitle)) { return(false); } if (!Object.Equals(Description, other.Description)) { return(false); } //value types if (!Survey.Equals(other.Survey)) { return(false); } if (!PageId.Equals(other.PageId)) { return(false); } if (!DisplayOrder.Equals(other.DisplayOrder)) { return(false); } if (!PreviousPage.Equals(other.PreviousPage)) { return(false); } if (!NextPage.Equals(other.NextPage)) { return(false); } if (!AttributeFlags.Equals(other.AttributeFlags)) { return(false); } if (!SkipTo.Equals(other.SkipTo)) { return(false); } if (!SkipToPage.Equals(other.SkipToPage)) { return(false); } return(true); }