I have a string value in which I need to do a compare on in an IF statement. However, I need to check the compare in a List object that contains a type string, how do I go about this in one line if possible (or using LINQ)?
For example I was going down the lines off
If "example" = m_listObject.ForEach(Function(x) x.stringValue)) Then
...
Of course this won't work but I hope you know what I mean,
Yes, I could do it in a for each or a for but I want to use LINQ if possible.
Thanks