Hey all,
I want to compare a list of mails, using subjects with list of subjects stored in list of string.
I tried using a LINQ something like this - listMailMessage.AsEnumerable().Where(Function(mail) listSubjects.AsEnumerable().Where( Function(x) mail.Subject.ToString.ToLower.Trim.Contains(x.ToString.ToLower)) ).ToList
but this doesn’t work and gives error. - value of type enumrable(string) cannot be converted to Boolean.
Any help is appreciated.