Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

linq contains null

(from a in this._addresses
where (a.Street ?? "").Contains(street) || (a.StreetAdditional ?? "").Contains(streetAdditional)
select a).ToList<Address>()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linq #null
ADD COMMENT
Topic
Name
7+5 =