/// <summary> /// Returns true if PdfAnnotateParameters instances are equal /// </summary> /// <param name="input">Instance of PdfAnnotateParameters to be compared</param> /// <returns>Boolean</returns> public bool Equals(PdfAnnotateParameters input) { if (input == null) { return(false); } return (( FileId == input.FileId || (FileId != null && FileId.Equals(input.FileId)) ) && ( PageRange == input.PageRange || (PageRange != null && PageRange.Equals(input.PageRange)) ) && ( AnnotationType == input.AnnotationType || AnnotationType.Equals(input.AnnotationType) ) && ( StickyNoteAnnotationParameters == input.StickyNoteAnnotationParameters || (StickyNoteAnnotationParameters != null && StickyNoteAnnotationParameters.Equals(input.StickyNoteAnnotationParameters)) ) && ( LinkAnnotationParameters == input.LinkAnnotationParameters || (LinkAnnotationParameters != null && LinkAnnotationParameters.Equals(input.LinkAnnotationParameters)) ) && ( FreeTextAnnotationParameters == input.FreeTextAnnotationParameters || (FreeTextAnnotationParameters != null && FreeTextAnnotationParameters.Equals(input.FreeTextAnnotationParameters)) ) && ( LineAnnotationParameters == input.LineAnnotationParameters || (LineAnnotationParameters != null && LineAnnotationParameters.Equals(input.LineAnnotationParameters)) ) && ( SquareAndCircleAnnotationParameters == input.SquareAndCircleAnnotationParameters || (SquareAndCircleAnnotationParameters != null && SquareAndCircleAnnotationParameters.Equals(input.SquareAndCircleAnnotationParameters)) ) && ( RubberStampAnnotationParameters == input.RubberStampAnnotationParameters || (RubberStampAnnotationParameters != null && RubberStampAnnotationParameters.Equals(input.RubberStampAnnotationParameters)) )); }
public override bool Equals(object other) { if (!(other is CustomItem otherItem)) { return(false); } return(Chromosome.Equals(otherItem.Chromosome) && Start.Equals(otherItem.Start) && ReferenceAllele.Equals(otherItem.ReferenceAllele) && AlternateAllele.Equals(otherItem.AlternateAllele) && AnnotationType.Equals(otherItem.AnnotationType)); }
public override bool Equals(object other) { var otherItem = other as CustomItem; if (otherItem == null) { return(false); } return(Chromosome.Equals(otherItem.Chromosome) && Start.Equals(otherItem.Start) && RefAllele.Equals(otherItem.RefAllele) && AltAllele.Equals(otherItem.AltAllele) && AnnotationType.Equals(otherItem.AnnotationType)); }