I have a linq query from a DbContext with the following in the where clause:
(toDate != null || a.Date <= toDate)
toDate is a nullable date. So we check it for null prior to doing a filter using it.
CSIsNull002 matches to this and suggests is not null, but when the refactor is made, I get the error:
CS8122 An expression tree may not contain an 'is' pattern-matching operator.
I have a linq query from a DbContext with the following in the where clause:
toDateis a nullable date. So we check it for null prior to doing a filter using it.CSIsNull002matches to this and suggests is not null, but when the refactor is made, I get the error: