[Solved] Can’t use ‘contains’ in LINQ [closed]


You are facing problem on this line

 (result => result.SiteUrl.Contains(last.ToString());

Can you please check that SiteUrl is type of string otherwise it not going to work for you.
because last is type of string and Contains is method supported by string type …

or

otherwise last need to be enumebrable collection and siteurl also enumerable collection than and only than Contains is supported

3

solved Can’t use ‘contains’ in LINQ [closed]