public bool Equals([AllowNull] Image other) { if (other != null) { if (ReferenceEquals(this, other)) { return(true); } if (ReferenceEquals(this, null)) { return(false); } if (ReferenceEquals(other, null)) { return(false); } if (GetType() != other.GetType()) { return(false); } if (Id == other.Id && ProductId == other.ProductId && CreateDate == other.CreateDate && UpdatedAt == other.UpdatedAt && Width == other.Width && Height == other.Height && Position == other.Position && Src.IsEquals(other.Src) && Alt.IsEquals(other.Alt)) { return(true); } return(false); } return(false); }