Try IndexOf :
searchString.IndexOf(saup.FriendlyName, StringComparison.InvariantCultureIgnoreCase) != -1
The reason this doesn't work is because the Contains extension method, which accepts IEqualityComparer<TSource> , works on a String that implements IEnumerable<char> , not IEnumerable<string> , so a String and IEqualityComparer<string> cannot be transferred to him.
Ryan source share