/// <summary> /// Returns true if InventoryItem instances are equal /// </summary> /// <param name="other">Instance of InventoryItem to be compared</param> /// <returns>Boolean</returns> public bool Equals(InventoryItem other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( ReleaseDate == other.ReleaseDate || ReleaseDate != null && ReleaseDate.Equals(other.ReleaseDate) ) && ( Manufacturer == other.Manufacturer || Manufacturer != null && Manufacturer.Equals(other.Manufacturer) )); }
public bool Equals(IntervalAnnotationHeader other) { if (other == null) { return(false); } return(Name.Equals(other.Name) && GenomeAssembly == other.GenomeAssembly && Version.Equals(other.Version) && ReleaseDate.Equals(other.ReleaseDate)); }
public bool Equals(SmallAnnotationHeader other) { if (other == null) { return(false); } return(Name.Equals(other.Name) && GenomeAssembly == other.GenomeAssembly && Version.Equals(other.Version) && ReleaseDate.Equals(other.ReleaseDate) && MatchByAllele == other.MatchByAllele); }
public override bool Equals(object obj) { if (obj is WishlistGameModel compareWith) { return(Name.Equals(compareWith.Name) && Price.Equals(compareWith.Price) && Free.Equals(compareWith.Free) && ReleaseDate.Equals(compareWith.ReleaseDate) && ReviewDescription.Equals(compareWith.ReviewDescription) && ReviewScore.Equals(compareWith.ReviewScore) && Tags.All(tag => compareWith.Tags.Contains(tag)) && Type.Equals(compareWith.Type) && Banner.Equals(compareWith.Banner)); } return(false); }
protected bool Equals(Book other) { return(string.Equals(ISBN, other.ISBN) && PublisherId == other.PublisherId && string.Equals(Name, other.Name) && ReleaseDate.Equals(other.ReleaseDate) && string.Equals(AgeRestriction, other.AgeRestriction)); }
protected bool Equals(Movie other) { return(Id == other.Id && Title == other.Title && ReleaseDate.Equals(other.ReleaseDate) && Price == other.Price && Genre == other.Genre && Rating == other.Rating); }